ClickHouse/cmake/find_lfalloc.cmake

13 lines
524 B
CMake
Raw Normal View History

2019-04-12 14:10:42 +00:00
if (1)
if (NOT EXISTS "${ClickHouse_SOURCE_DIR}/contrib/lfalloc/src/lf_allocX64.h")
message (FATAL_ERROR "submodule contrib/lfalloc is missing. to fix try run: \n git submodule update --init --recursive")
endif()
if (NOT SANITIZE)
set (USE_LFALLOC 1)
set (LFALLOC_LIBRARIES "lfalloc")
else ()
#if (SANITIZE OR ARCH_ARM OR ARCH_32 OR ARCH_PPC64LE)
# message (FATAL_ERROR "lfalloc cannot be used with sanitizers or other platforms than X86_64")
endif ()
endif ()