diff --git a/src/osgEarth/CMakeLists.txt b/src/osgEarth/CMakeLists.txt index 0f8726059c..224a37573c 100644 --- a/src/osgEarth/CMakeLists.txt +++ b/src/osgEarth/CMakeLists.txt @@ -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)