diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-14 19:56:22 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-14 19:56:22 +0000 |
commit | 77cb03664e09fe19ad455cb69f757f1e46f62032 (patch) | |
tree | ec428e2c585f1737dee10de31f78afa9e7f21677 /CMakeLists.txt | |
parent | bf4709966a18cb77664afc0fa418591c4271d1f4 (diff) | |
download | rspamd-77cb03664e09fe19ad455cb69f757f1e46f62032.tar.gz rspamd-77cb03664e09fe19ad455cb69f757f1e46f62032.zip |
Use __get_cpuid if available.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a330a5a20..25df1a574 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -712,6 +712,7 @@ CHECK_INCLUDE_FILES(sys/eventfd.h HAVE_SYS_EVENTFD_H) CHECK_INCLUDE_FILES(aio.h HAVE_AIO_H) CHECK_INCLUDE_FILES(libaio.h HAVE_LIBAIO_H) CHECK_INCLUDE_FILES(unistd.h HAVE_UNISTD_H) +CHECK_INCLUDE_FILES(cpuid.h HAVE_CPUID_H) # Some dependencies IF(HAVE_SYS_WAIT_H) @@ -830,6 +831,7 @@ CHECK_SYMBOL_EXISTS(_SC_NPROCESSORS_ONLN unistd.h HAVE_SC_NPROCESSORS_ONLN) CHECK_SYMBOL_EXISTS(setbit sys/param.h PARAM_H_HAS_BITSET) CHECK_SYMBOL_EXISTS(getaddrinfo "sys/types.h;sys/socket.h;netdb.h" HAVE_GETADDRINFO) CHECK_SYMBOL_EXISTS(sched_yield "sched.h" HAVE_SCHED_YIELD) +CHECK_SYMBOL_EXISTS(__get_cpuid "cpuid.h" HAVE_GET_CPUID) CHECK_SYMBOL_EXISTS(PCRE_CONFIG_JIT "pcre.h" HAVE_PCRE_JIT) FILE(WRITE ${CMAKE_BINARY_DIR}/pthread_setpshared.c " |