diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2009-05-06 14:40:37 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2009-05-06 14:40:37 +0000 |
commit | d413c01088ff0bf9ab1d856f75ef2ba84427fd6d (patch) | |
tree | 8b1fa1dc25c7d8b76fd1618ac8387563d9eb747b /cmake | |
parent | ec8b2a95303ef51acdf5b034ab8f4371665fc136 (diff) | |
download | external_llvm-d413c01088ff0bf9ab1d856f75ef2ba84427fd6d.zip external_llvm-d413c01088ff0bf9ab1d856f75ef2ba84427fd6d.tar.gz external_llvm-d413c01088ff0bf9ab1d856f75ef2ba84427fd6d.tar.bz2 |
CMake: Detects libpthread and sets HAVE_LIBPTHREAD.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71084 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rwxr-xr-x | cmake/config-ix.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index 5ab3935..0d61f1e 100755 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -37,6 +37,10 @@ check_include_file(unistd.h HAVE_UNISTD_H) check_include_file(utime.h HAVE_UTIME_H) check_include_file(windows.h HAVE_WINDOWS_H) +# library checks +include(CheckLibraryExists) +check_library_exists(pthread pthread_create "" HAVE_LIBPTHREAD) + # function checks include(CheckSymbolExists) check_symbol_exists(getpagesize unistd.h HAVE_GETPAGESIZE) |