diff options
author | Guillaume Denneulin <guillaume.denneulin@intel.com> | 2014-02-20 14:18:16 +0100 |
---|---|---|
committer | Guillaume Denneulin <guillaume.denneulin@intel.com> | 2014-02-20 14:18:16 +0100 |
commit | 37a6ee8e632205b18159be428bfc73ade527726b (patch) | |
tree | d64362ad288736e54c8f45c99ac3d2eaa031a5c6 /remote-processor | |
parent | 3635048a9854d5fa5e5bd254c3de74eecdc53a01 (diff) | |
parent | c083330f9538f1bac8045c0660775efe63055696 (diff) | |
download | external_parameter-framework-37a6ee8e632205b18159be428bfc73ade527726b.zip external_parameter-framework-37a6ee8e632205b18159be428bfc73ade527726b.tar.gz external_parameter-framework-37a6ee8e632205b18159be428bfc73ade527726b.tar.bz2 |
Merge pull request #1 from 01org/cmake_cleanups
Cmake cleanups
Diffstat (limited to 'remote-processor')
-rw-r--r-- | remote-processor/CMakeLists.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/remote-processor/CMakeLists.txt b/remote-processor/CMakeLists.txt index 60b6ff2..7b2cf0c 100644 --- a/remote-processor/CMakeLists.txt +++ b/remote-processor/CMakeLists.txt @@ -8,9 +8,13 @@ add_library(remote-processor SHARED RemoteProcessorServer.cpp RemoteProcessorServerBuilder.cpp) +set(CMAKE_THREAD_PREFER_PTHREAD 1) include(FindThreads) -# TODO: use the "prefer pthread" option; check if we are using pthread (what to -# do else ?) +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) target_link_libraries(remote-processor ${CMAKE_THREAD_LIBS_INIT}) install(TARGETS remote-processor LIBRARY DESTINATION lib) |