]> git.mxchange.org Git - simgear.git/commitdiff
Fix bucketBoxTest linkage.
authorJames Turner <zakalawe@mac.com>
Thu, 7 Feb 2013 17:53:34 +0000 (17:53 +0000)
committerJames Turner <zakalawe@mac.com>
Thu, 7 Feb 2013 17:53:34 +0000 (17:53 +0000)
simgear/scene/tgdb/CMakeLists.txt

index caec45ac202d136bec73ec24093656945bdad124..e514859cd424adc93348a764b9a1f380771bed50 100644 (file)
@@ -41,8 +41,14 @@ set(SOURCES
 simgear_scene_component(tgdb scene/tgdb "${SOURCES}" "${HEADERS}")
 
 if(ENABLE_TESTS)
+    if (SIMGEAR_SHARED)
+        set(TEST_LIBS SimGearCore)
+    else()
+        set(TEST_LIBS SimGearCore ${CMAKE_THREAD_LIBS_INIT})
+    endif()
+
   add_executable(BucketBoxTest BucketBoxTest.cxx)
-  target_link_libraries(BucketBoxTest SimGearCore)
+  target_link_libraries(BucketBoxTest ${TEST_LIBS})
   add_test(BucketBoxTest ${EXECUTABLE_OUTPUT_PATH}/BucketBoxTest)
 
 endif(ENABLE_TESTS)