]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Allow to explicitly link with static hyperscan
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 25 Jun 2018 13:53:20 +0000 (14:53 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 25 Jun 2018 13:53:20 +0000 (14:53 +0100)
CMakeLists.txt

index d0e28c3408a90c4bc888e0b66ccb6e2109ded774..7f9c82d1ade973faadb44b3ac59d42980a0631ef 100644 (file)
@@ -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()