diff options
author | Martin DeMello <mdemello@google.com> | 2019-07-31 02:40:21 -0700 |
---|---|---|
committer | John Fultz <jfultz@wolfram.com> | 2019-08-06 09:22:48 -0500 |
commit | e2d6be57abf88d4bc666d61d21e568edde31bdf1 (patch) | |
tree | d5f25381901629492936a200052881183789f01b /CMakeLists.txt | |
parent | 153c4d75f263b68a968cd40c2ca30d5677137d00 (diff) |
link threads in a properly crossplatform manner
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
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) |