mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 03:22:14 +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.4 KiB
CMake
45 lines
1.4 KiB
CMake
# - Try to find double-conversion headers and libraries.
|
|
#
|
|
# Usage of this module as follows:
|
|
#
|
|
# find_package(double-conversion)
|
|
#
|
|
# Variables used by this module, they can change the default behaviour and need
|
|
# to be set before calling find_package:
|
|
#
|
|
# DOUBLE_CONVERSION_ROOT_DIR Set this variable to the root installation of
|
|
# double-conversion if the module has problems finding
|
|
# the proper installation path.
|
|
#
|
|
# Variables defined by this module:
|
|
#
|
|
# DOUBLE_CONVERSION_FOUND System has double-conversion libs/headers
|
|
# DOUBLE_CONVERSION_LIBRARIES The double-conversion library/libraries
|
|
# DOUBLE_CONVERSION_INCLUDE_DIR The location of double-conversion headers
|
|
|
|
find_path(DOUBLE_CONVERSION_ROOT_DIR
|
|
NAMES include/double-conversion.h
|
|
)
|
|
|
|
find_library(DOUBLE_CONVERSION_LIBRARIES
|
|
NAMES double-conversion
|
|
PATHS ${DOUBLE_CONVERSION_ROOT_DIR}/lib ${BTRIE_CITYHASH_PATHS}
|
|
)
|
|
|
|
find_path(DOUBLE_CONVERSION_INCLUDE_DIR
|
|
NAMES double-conversion.h
|
|
PATHS ${DOUBLE_CONVERSION_ROOT_DIR}/include ${DOUBLE_CONVERSION_INCLUDE_PATHS}
|
|
)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(double_conversion DEFAULT_MSG
|
|
DOUBLE_CONVERSION_LIBRARIES
|
|
DOUBLE_CONVERSION_INCLUDE_DIR
|
|
)
|
|
|
|
mark_as_advanced(
|
|
DOUBLE_CONVERSION_ROOT_DIR
|
|
DOUBLE_CONVERSION_LIBRARIES
|
|
DOUBLE_CONVERSION_INCLUDE_DIR
|
|
)
|