]> git.mxchange.org Git - simgear.git/commitdiff
CMake: fix underlinking
authorJulian Ospald <hasufell@gentoo.org>
Tue, 28 Aug 2012 08:37:22 +0000 (10:37 +0200)
committerChristian Schmitt <chris@ilovelinux.de>
Tue, 28 Aug 2012 09:30:49 +0000 (11:30 +0200)
simgear/CMakeLists.txt

index a613805f58233fd8f79b9ad2131b5096b305cb28..84c1d22b2f3a60b8e0c6c7712f423b4af23cdbf5 100644 (file)
@@ -55,7 +55,7 @@ if(SIMGEAR_SHARED)
     set_property(TARGET SimGearCore PROPERTY VERSION   ${SIMGEAR_VERSION})
     set_property(TARGET SimGearCore PROPERTY SOVERSION ${SIMGEAR_SOVERSION})
 
-    target_link_libraries(SimGearCore ${ZLIB_LIBRARY} ${RT_LIBRARY})
+    target_link_libraries(SimGearCore ${ZLIB_LIBRARY} ${RT_LIBRARY} ${CMAKE_THREAD_LIBS_INIT})
     install(TARGETS SimGearCore LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
 
     if(LIBSVN_FOUND)