aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/Hyperscan.cmake
blob: dc19f49c6ffacf39691a3a4863a3761ae5f55d3f (plain)
1
2
3
4
5
6
7
8
option (ENABLE_HYPERSCAN    "Enable hyperscan for fast regexp processing [default: OFF]" OFF)

if (ENABLE_HYPERSCAN MATCHES "ON")
    ProcessPackage (HYPERSCAN LIBRARY hs INCLUDE hs.h INCLUDE_SUFFIXES
            hs include/hs
            ROOT ${HYPERSCAN_ROOT_DIR} MODULES libhs)
    set (WITH_HYPERSCAN 1)
endif ()