Skip to content

Commit

Permalink
revert last cmake changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sameeul committed Oct 24, 2023
1 parent 5a70f1c commit 2d0dfae
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2d0dfae

Please sign in to comment.