]> sigrok.org Git - pulseview.git/commitdiff
tests/CMakeLists.txt: Add missing boost-thread check.
authorUwe Hermann <redacted>
Wed, 16 Oct 2013 15:39:33 +0000 (17:39 +0200)
committerUwe Hermann <redacted>
Wed, 16 Oct 2013 15:39:33 +0000 (17:39 +0200)
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()'
[....]

test/CMakeLists.txt

index a8f152c165cf710bf64825bb4bed87f1793f75b6..9579d8de4413acb66e604c2f00c2dc6d6996f791 100644 (file)
@@ -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)