diff options
author | flaviojs <flaviojs@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-06-03 19:31:32 +0000 |
---|---|---|
committer | flaviojs <flaviojs@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-06-03 19:31:32 +0000 |
commit | 774777b1cdefb7766611c38ac94ab469d772db5f (patch) | |
tree | 6cb89de01b4f574f3dfa9221aaa1c4a1ed7debe6 /CMakeLists.txt | |
parent | 6e3d1006aa680a7b1477a0f671c552958116ebd1 (diff) | |
download | hercules-774777b1cdefb7766611c38ac94ab469d772db5f.tar.gz hercules-774777b1cdefb7766611c38ac94ab469d772db5f.tar.bz2 hercules-774777b1cdefb7766611c38ac94ab469d772db5f.tar.xz hercules-774777b1cdefb7766611c38ac94ab469d772db5f.zip |
CMake: Add threads library.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16223 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'CMakeLists.txt')
-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)" ) |