mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 18:12:02 +00:00
175cd99288
* Cmake: Don't detect and use -no-pie flag with clang * Camke: find_unwind: Fix disable on arm * Freebsd fixes: fix build with libc++, fix find system lib double-conversion
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/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/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
|
|
)
|