mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
14 lines
339 B
CMake
14 lines
339 B
CMake
# Check if gperf was installed
|
|
find_program(GPERF gperf)
|
|
if(GPERF)
|
|
option(ENABLE_GPERF "Use gperf function hash generator tool" ON)
|
|
endif()
|
|
if (ENABLE_GPERF)
|
|
if(NOT GPERF)
|
|
message(FATAL_ERROR "Could not find the program gperf")
|
|
endif()
|
|
set(USE_GPERF 1)
|
|
endif()
|
|
|
|
message(STATUS "Using gperf=${USE_GPERF}: ${GPERF}")
|