diff options
-rw-r--r-- | CMakeLists.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a99cee85e..120ce4f35 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -139,6 +139,19 @@ endif() # +# threads +# +message( STATUS "Detecting threads library" ) +set( CMAKE_THREAD_PREFER_PTHREAD 1 ) +find_package(Threads REQUIRED) +if( CMAKE_THREAD_LIBS_INIT ) + message( STATUS "Adding global library: ${FUNCTION_FLOOR_LIBRARIES}" ) + set_property( CACHE GLOBAL_LIBRARIES PROPERTY VALUE ${GLOBAL_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ) +endif() +message( STATUS "Detecting threads library - done" ) + + +# # math library (FreeBSD/Linux/Solaris) # message( STATUS "Detecting math library (m)" ) |