From: Uwe Hermann Date: Wed, 16 Oct 2013 15:39:33 +0000 (+0200) Subject: tests/CMakeLists.txt: Add missing boost-thread check. X-Git-Tag: pulseview-0.2.0~239 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d29f80caf295b26a5d86225e3d1c6cb31a52cd85;p=pulseview.git tests/CMakeLists.txt: Add missing boost-thread check. find_package(Boost ...) was missing the "thread" entry, which caused linking to fail in some situations. [100%] Building CXX object test/CMakeFiles/pulseview-test.dir/__/pv/widgets/moc_wellarray.cxx.o Linking CXX executable pulseview-test CMakeFiles/pulseview-test.dir/__/pv/sigsession.cpp.o: In function `pv::SigSession::SigSession(pv::DeviceManager&)': sigsession.cpp:(.text+0xfa): undefined reference to `boost::thread::thread()' [....] --- diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index a8f152c1..9579d8de 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -30,7 +30,7 @@ pkg_check_modules(PKGDEPS REQUIRED ${PKGDEPS}) # This will set ${CMAKE_THREAD_LIBS_INIT} to the correct, OS-specific value. find_package(Threads) -find_package(Boost 1.46 COMPONENTS system unit_test_framework REQUIRED) +find_package(Boost 1.46 COMPONENTS system thread unit_test_framework REQUIRED) #FIND_PROGRAM(QT_QMAKE_EXECUTABLE NAMES qmake4 qmake-qt4 qmake-mac) find_package(Qt4 REQUIRED)