X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=test%2FCMakeLists.txt;h=fdf674f50f6449b330774ec68e0c5856c8c59baf;hp=5fff12b044748cc93f52e7834329e9e5bd84b0b7;hb=f64767a69b39f4e55ec8d1c2745f2a14aebd0c8b;hpb=1b1ec774978b65209ce2b454cbf81da499b797d2 diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 5fff12b0..fdf674f5 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