diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-20 21:23:16 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-20 21:23:24 +0000 |
commit | bef452ccbc501e756e4cb00db887454038781bbb (patch) | |
tree | 074ab79e47388060ba633f83ec5705294fbfef9b /CMakeLists.txt | |
parent | c0a9a49c3216e94adcf19564e22ef020c53e95fe (diff) | |
download | rspamd-bef452ccbc501e756e4cb00db887454038781bbb.tar.gz rspamd-bef452ccbc501e756e4cb00db887454038781bbb.zip |
Hyperscan is available for x86_64 only so far
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 263249f38..ae77b8330 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,8 +55,16 @@ OPTION(ENABLE_CLANG_PLUGIN "Enable clang static analysing plugin [default: OFF]" OPTION(ENABLE_HYPERSCAN "Enable hyperscan for fast regexp processing [default: OFF]" OFF) -IF (ENABLE_HYPERSCAN MATCHES "ON") - ENABLE_LANGUAGE(CXX) +INCLUDE(FindArch.cmake) +TARGET_ARCHITECTURE(ARCH) + +IF ("${ARCH}" STREQUAL "x86_64") + IF (ENABLE_HYPERSCAN MATCHES "ON") + ENABLE_LANGUAGE(CXX) + ENDIF() +ELSE() + MESSAGE(STATUS "Hyperscan support is possible only for x86_64 architecture") + SET(ENABLE_HYPERSCAN "OFF") ENDIF() # Build optimized code for following CPU (default i386) #SET(CPU_TUNE "i686") |