summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-25 14:53:20 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-25 14:53:20 +0100
commit3c353232c9f9c56efa5b9e7f58402111cc3524b8 (patch)
tree9909bf769034a28ba86c35f11f3190d18a77c191
parente6e0fa3b14a809783a2ba63e0ca80ba315c3bf7a (diff)
downloadrspamd-3c353232c9f9c56efa5b9e7f58402111cc3524b8.tar.gz
rspamd-3c353232c9f9c56efa5b9e7f58402111cc3524b8.zip
[Minor] Allow to explicitly link with static hyperscan
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d0e28c340..7f9c82d1a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -719,7 +719,7 @@ IF(ENABLE_GPERF_TOOLS MATCHES "ON")
ENDIF(ENABLE_GPERF_TOOLS MATCHES "ON")
IF (ENABLE_HYPERSCAN MATCHES "ON")
- IF(${HYPERSCAN_LIBRARY} MATCHES ".*[.]a$")
+ IF(${HYPERSCAN_LIBRARY} MATCHES ".*[.]a$" OR STATIC_HYPERSCAN)
ENABLE_LANGUAGE(CXX)
SET(USE_CXX_LINKER 1)
ENDIF()