mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-02 00:37:09 +00:00
CMake: Detects libpthread and sets HAVE_LIBPTHREAD.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71084 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ec8b2a9530
commit
d413c01088
@ -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)
|
||||
|
@ -194,7 +194,7 @@
|
||||
#cmakedefine HAVE_LIBPSAPI ${HAVE_LIBPSAPI}
|
||||
|
||||
/* Define to 1 if you have the `pthread' library (-lpthread). */
|
||||
#undef HAVE_LIBPTHREAD
|
||||
#cmakedefine HAVE_LIBPTHREAD ${HAVE_LIBPTHREAD}
|
||||
|
||||
/* Define to 1 if you have the `udis86' library (-ludis86). */
|
||||
#undef HAVE_LIBUDIS86
|
||||
|
Loading…
Reference in New Issue
Block a user