mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-15 20:24:07 +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
45 lines
1.1 KiB
CMake
45 lines
1.1 KiB
CMake
# - Try to find cityhash headers and libraries.
|
|
#
|
|
# Usage of this module as follows:
|
|
#
|
|
# find_package(cityhash)
|
|
#
|
|
# Variables used by this module, they can change the default behaviour and need
|
|
# to be set before calling find_package:
|
|
#
|
|
# CITYHASH_ROOT_DIR Set this variable to the root installation of
|
|
# cityhash if the module has problems finding
|
|
# the proper installation path.
|
|
#
|
|
# Variables defined by this module:
|
|
#
|
|
# CITYHASH_FOUND System has cityhash libs/headers
|
|
# CITYHASH_LIBRARIES The cityhash library/libraries
|
|
# CITYHASH_INCLUDE_DIR The location of cityhash headers
|
|
|
|
find_path(CITYHASH_ROOT_DIR
|
|
NAMES include/city.h
|
|
)
|
|
|
|
find_library(CITYHASH_LIBRARIES
|
|
NAMES cityhash
|
|
PATHS ${CITYHASH_ROOT_DIR}/lib ${CITYHASH_LIBRARIES_PATHS}
|
|
)
|
|
|
|
find_path(CITYHASH_INCLUDE_DIR
|
|
NAMES city.h
|
|
PATHS ${CITYHASH_ROOT_DIR}/include ${CITYHASH_INCLUDE_PATHS}
|
|
)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(cityhash DEFAULT_MSG
|
|
CITYHASH_LIBRARIES
|
|
CITYHASH_INCLUDE_DIR
|
|
)
|
|
|
|
mark_as_advanced(
|
|
CITYHASH_ROOT_DIR
|
|
CITYHASH_LIBRARIES
|
|
CITYHASH_INCLUDE_DIR
|
|
)
|