summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--remote-processor/CMakeLists.txt8
1 files changed, 2 insertions, 6 deletions
diff --git a/remote-processor/CMakeLists.txt b/remote-processor/CMakeLists.txt
index 23307a1..598bd4f 100644
--- a/remote-processor/CMakeLists.txt
+++ b/remote-processor/CMakeLists.txt
@@ -37,12 +37,8 @@ add_library(remote-processor SHARED
RemoteProcessorServerBuilder.cpp)
set(CMAKE_THREAD_PREFER_PTHREAD 1)
-include(FindThreads)
-if(NOT CMAKE_USE_PTHREADS_INIT)
- message(SEND_ERROR "
- pthread library not found! Please install the POSIX thread library and
- headers.")
-endif(NOT CMAKE_USE_PTHREADS_INIT)
+find_package(Threads REQUIRED)
+
target_link_libraries(remote-processor ${CMAKE_THREAD_LIBS_INIT})
install(TARGETS remote-processor LIBRARY DESTINATION lib)