From e2d6be57abf88d4bc666d61d21e568edde31bdf1 Mon Sep 17 00:00:00 2001 From: Martin DeMello Date: Wed, 31 Jul 2019 02:40:21 -0700 Subject: link threads in a properly crossplatform manner --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CMakeLists.txt') 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) -- cgit v1.2.3