From 2d0dfae6fea166767fa9041f2b2d4ca10cf5db02 Mon Sep 17 00:00:00 2001 From: sameeul Date: Mon, 23 Oct 2023 23:53:16 -0400 Subject: [PATCH] revert last cmake changes --- CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 22822f53..a0ef402c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -253,6 +253,16 @@ if(USE_Z5) endif() endif() +find_package(Threads QUIET) +if (Threads_FOUND) + if (CMAKE_USE_PTHREADS_INIT) + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread") + endif (CMAKE_USE_PTHREADS_INIT) + list(APPEND Nyxus_LIBRARIES ${CMAKE_THREAD_LIBS_INIT}) +else () + message(STATUS "Unable to find threads. Nyxus must have a threading library i.e. pthreads.") +endif () + if(USE_DCMTK) #== Required for DICOM find_package(DCMTK)