mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-14 03:25:15 +00:00
ac178bde1f
* Cmake: link ltdl with pocoodbc static only. rename ARM -> ARCH_ARM * Fix lib find order * Allow define non-contrib cityhash farmhash metrohash * Fix message * Cmake: fixes * clean * Update CMakeLists.txt
16 lines
508 B
CMake
16 lines
508 B
CMake
option (USE_INTERNAL_ZSTD_LIBRARY "Set to FALSE to use system zstd library instead of bundled" ${NOT_UNBUNDLED})
|
|
|
|
if (NOT USE_INTERNAL_ZSTD_LIBRARY)
|
|
find_library (ZSTD_LIBRARY zstd)
|
|
find_path (ZSTD_INCLUDE_DIR NAMES zstd.h PATHS ${ZSTD_INCLUDE_PATHS})
|
|
endif ()
|
|
|
|
if (ZSTD_LIBRARY AND ZSTD_INCLUDE_DIR)
|
|
include_directories (${ZSTD_INCLUDE_DIR})
|
|
else ()
|
|
set (USE_INTERNAL_ZSTD_LIBRARY 1)
|
|
set (ZSTD_LIBRARY zstd)
|
|
endif ()
|
|
|
|
message (STATUS "Using zstd: ${ZSTD_INCLUDE_DIR} : ${ZSTD_LIBRARY}")
|