Fixed "unbundled" build

This commit is contained in:
Alexey Milovidov 2020-06-08 02:11:37 +03:00
parent f2cfb7d132
commit d91dab0d8f

View File

@ -14,10 +14,12 @@ if (NOT EXISTS "${ClickHouse_SOURCE_DIR}/contrib/hyperscan/CMakeLists.txt")
set (USE_INTERNAL_HYPERSCAN_LIBRARY 0) set (USE_INTERNAL_HYPERSCAN_LIBRARY 0)
endif () endif ()
if (NOT USE_INTERNAL_HYPERSCAN_LIBRARY) # We cannot use OS hyperscan library due to different include path.
find_library (HYPERSCAN_LIBRARY hs) #
find_path (HYPERSCAN_INCLUDE_DIR NAMES hs/hs.h hs.h PATHS ${HYPERSCAN_INCLUDE_PATHS}) #if (NOT USE_INTERNAL_HYPERSCAN_LIBRARY)
endif () # find_library (HYPERSCAN_LIBRARY hs)
# find_path (HYPERSCAN_INCLUDE_DIR NAMES hs/hs.h hs.h PATHS ${HYPERSCAN_INCLUDE_PATHS})
#endif ()
if (HYPERSCAN_LIBRARY AND HYPERSCAN_INCLUDE_DIR) if (HYPERSCAN_LIBRARY AND HYPERSCAN_INCLUDE_DIR)
set (USE_HYPERSCAN 1) set (USE_HYPERSCAN 1)