From: James Turner Date: Thu, 7 Feb 2013 17:53:34 +0000 (+0000) Subject: Fix bucketBoxTest linkage. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=34d3c633841e1631ab735247934f059e085a2980;p=simgear.git Fix bucketBoxTest linkage. --- diff --git a/simgear/scene/tgdb/CMakeLists.txt b/simgear/scene/tgdb/CMakeLists.txt index caec45ac..e514859c 100644 --- a/simgear/scene/tgdb/CMakeLists.txt +++ b/simgear/scene/tgdb/CMakeLists.txt @@ -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)