Skip to content

Commit

Permalink
gcc compiler fix #8
Browse files Browse the repository at this point in the history
  • Loading branch information
gwaldron authored Feb 11, 2024
1 parent 6be9e97 commit 456230e
Showing 1 changed file with 4 additions and 0 deletions.
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 456230e

Please sign in to comment.