projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added missing pthread linkage in tests
[pulseview.git]
/
test
/
CMakeLists.txt
diff --git
a/test/CMakeLists.txt
b/test/CMakeLists.txt
index 5fff12b044748cc93f52e7834329e9e5bd84b0b7..fdf674f50f6449b330774ec68e0c5856c8c59baf 100644
(file)
--- a/
test/CMakeLists.txt
+++ b/
test/CMakeLists.txt
@@
-18,6
+18,10
@@
## along with this program. If not, see <http://www.gnu.org/licenses/>.
##
## along with this program. If not, see <http://www.gnu.org/licenses/>.
##
+# 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
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}
set(PULSEVIEW_LINK_LIBS
${Boost_LIBRARIES}
+ ${CMAKE_THREAD_LIBS_INIT}
)
add_executable(pulseview-test
)
add_executable(pulseview-test