From: Arkadiusz Miƛkiewicz Date: Sat, 9 Mar 2013 16:35:20 +0000 (+0000) Subject: Added missing pthread linkage in tests X-Git-Tag: pulseview-0.1.0~90 X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=f64767a69b39f4e55ec8d1c2745f2a14aebd0c8b Added missing pthread linkage in tests --- 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