Skip to content

Commit

Permalink
Merge branch 'weethreads' of github.com:gwaldron/osgearth into weethr…
Browse files Browse the repository at this point in the history
…eads
  • Loading branch information
gwaldron committed Feb 13, 2024
2 parents 7b3405c + 456230e commit fde0fc0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
11 changes: 4 additions & 7 deletions CMakeModules/oe_unix.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@
IF(UNIX AND NOT ANDROID)
# Not sure what this will do on Cygwin and Msys
# Also, remember OS X X11 is a user installed option so it may not exist.
find_library(X11)

FIND_PACKAGE(X11)
# Some Unicies need explicit linkage to the Math library or the build fails.
find_library(MATH_LIBRARY m)

# for pthreads
find_library(Threads)

FIND_LIBRARY(MATH_LIBRARY m)
# for ptheads in linux
find_package(Threads REQUIRED)
ENDIF(UNIX AND NOT ANDROID)
2 changes: 1 addition & 1 deletion src/applications/osgearth_features/osgearth_features.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ using namespace osgEarth::Util;

int usage( const std::string& app )
{
OE_NOTICE "\n" << app << "\n"
OE_NOTICE << "\n" << app << "\n"
<< " --rasterize : draw features as rasterized image tiles \n"
<< " --drape : draw features as projected texture \n"
<< " --clamp : draw features using shader clamping \n"
Expand Down
4 changes: 4 additions & 0 deletions src/osgEarth/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -980,6 +980,10 @@ IF (TRACY_FOUND)
LINK_WITH_VARIABLES(${LIB_NAME} TRACY_LIBRARY)
ENDIF(TRACY_FOUND)

if(UNIX)
target_link_libraries(${LIB_NAME} PUBLIC Threads::Threads)
endif()

OPTION(NRL_STATIC_LIBRARIES "Link osgEarth against static GDAL and cURL, including static OpenSSL, Proj4, JPEG, PNG, and TIFF." OFF)
if(NOT NRL_STATIC_LIBRARIES)
LINK_WITH_VARIABLES(${LIB_NAME} OSG_LIBRARY OSGUTIL_LIBRARY OSGSIM_LIBRARY OSGDB_LIBRARY OSGVIEWER_LIBRARY OSGTEXT_LIBRARY OSGGA_LIBRARY OSGSHADOW_LIBRARY CURL_LIBRARY GDAL_LIBRARY OSGMANIPULATOR_LIBRARY)
Expand Down

0 comments on commit fde0fc0

Please sign in to comment.