summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMartin DeMello <mdemello@google.com>2019-07-31 02:40:21 -0700
committerJohn Fultz <jfultz@wolfram.com>2019-08-06 09:22:48 -0500
commite2d6be57abf88d4bc666d61d21e568edde31bdf1 (patch)
treed5f25381901629492936a200052881183789f01b /CMakeLists.txt
parent153c4d75f263b68a968cd40c2ca30d5677137d00 (diff)
link threads in a properly crossplatform manner
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 678d17d..d77a949 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,6 +6,8 @@ message("-- Configuring libquackle")
include("${CMAKE_CURRENT_SOURCE_DIR}/Settings.cmake")
+find_package(Threads REQUIRED)
+
set(LIBQUACKLE_SOURCES
alphabetparameters.cpp
bag.cpp
@@ -72,3 +74,5 @@ set(LIBQUACKLE_HEADERS
add_library(libquackle
${LIBQUACKLE_SOURCES} ${LIBQUACKLE_HEADERS}
)
+
+target_link_libraries(libquackle Threads::Threads)