X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=test%2FCMakeLists.txt;h=fdf674f50f6449b330774ec68e0c5856c8c59baf;hp=5fff12b044748cc93f52e7834329e9e5bd84b0b7;hb=f64767a69b39f4e55ec8d1c2745f2a14aebd0c8b;hpb=a8e3b0d777d81712e24f352fadb12e6bd33e30fa diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 5fff12b..fdf674f 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -18,6 +18,10 @@ ## along with this program. If not, see . ## +# Find the platform's thread library (needed for boost-thread). +# This will set ${CMAKE_THREAD_LIBS_INIT} to the correct, OS-specific value. +find_package(Threads) + find_package(Boost 1.46 COMPONENTS unit_test_framework REQUIRED) set(pulseview_TEST_SOURCES @@ -35,6 +39,7 @@ include_directories( set(PULSEVIEW_LINK_LIBS ${Boost_LIBRARIES} + ${CMAKE_THREAD_LIBS_INIT} ) add_executable(pulseview-test