projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8e3b0d
)
Added missing pthread linkage in tests
author
Arkadiusz Miśkiewicz
<arekm@maven.pl>
Sat, 9 Mar 2013 16:35:20 +0000
(16:35 +0000)
committer
Joel Holdsworth
<joel@airwebreathe.org.uk>
Mon, 11 Mar 2013 20:41:35 +0000
(20:41 +0000)
test/CMakeLists.txt
patch
|
blob
|
history
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/>.
##
+# 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