2017-02-28 23:49:04 +00:00
|
|
|
option (USE_INTERNAL_DOUBLE_CONVERSION_LIBRARY "Set to FALSE to use system double-conversion library instead of bundled" ${NOT_UNBUNDLED})
|
|
|
|
|
|
|
|
if (NOT USE_INTERNAL_DOUBLE_CONVERSION_LIBRARY)
|
2017-04-01 07:20:54 +00:00
|
|
|
find_library (DOUBLE_CONVERSION_LIBRARY double-conversion)
|
|
|
|
find_path (DOUBLE_CONVERSION_INCLUDE_DIR NAMES double-conversion/double-conversion.h PATHS ${DOUBLE_CONVERSION_INCLUDE_PATHS})
|
2017-02-28 23:49:04 +00:00
|
|
|
endif ()
|
|
|
|
|
|
|
|
if (DOUBLE_CONVERSION_LIBRARY AND DOUBLE_CONVERSION_INCLUDE_DIR)
|
2017-04-01 07:20:54 +00:00
|
|
|
include_directories (${DOUBLE_CONVERSION_INCLUDE_DIR})
|
2017-02-28 23:49:04 +00:00
|
|
|
else ()
|
2017-04-01 07:20:54 +00:00
|
|
|
set (USE_INTERNAL_DOUBLE_CONVERSION_LIBRARY 1)
|
|
|
|
set (DOUBLE_CONVERSION_INCLUDE_DIR "${ClickHouse_SOURCE_DIR}/contrib/libdouble-conversion")
|
|
|
|
include_directories (BEFORE ${DOUBLE_CONVERSION_INCLUDE_DIR})
|
|
|
|
set (DOUBLE_CONVERSION_LIBRARY double-conversion)
|
2017-02-28 23:49:04 +00:00
|
|
|
endif ()
|
|
|
|
|
|
|
|
message (STATUS "Using double-conversion: ${DOUBLE_CONVERSION_INCLUDE_DIR} : ${DOUBLE_CONVERSION_LIBRARY}")
|