From 3c353232c9f9c56efa5b9e7f58402111cc3524b8 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 25 Jun 2018 14:53:20 +0100 Subject: [Minor] Allow to explicitly link with static hyperscan --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit v1.2.3