CodeCommitsIssuesPull requestsActionsInsightsSecurity
fd69ee1275e66b5423e6e687f30c1a64610487ec

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

cmake/Modules/Finddouble-conversion.cmake

44lines · modecode

1# - Try to find double-conversion headers and libraries.
2#
3# Usage of this module as follows:
4#
5# find_package(double-conversion)
6#
7# Variables used by this module, they can change the default behaviour and need
8# to be set before calling find_package:
9#
10# DOUBLE_CONVERSION_ROOT_DIR Set this variable to the root installation of
11# double-conversion if the module has problems finding
12# the proper installation path.
13#
14# Variables defined by this module:
15#
16# DOUBLE_CONVERSION_FOUND System has double-conversion libs/headers
17# DOUBLE_CONVERSION_LIBRARIES The double-conversion library/libraries
18# DOUBLE_CONVERSION_INCLUDE_DIR The location of double-conversion headers
19
20find_path(DOUBLE_CONVERSION_ROOT_DIR
21 NAMES include/double-conversion/double-conversion.h
22)
23
24find_library(DOUBLE_CONVERSION_LIBRARIES
25 NAMES double-conversion
26 PATHS ${DOUBLE_CONVERSION_ROOT_DIR}/lib ${BTRIE_CITYHASH_PATHS}
27)
28
29find_path(DOUBLE_CONVERSION_INCLUDE_DIR
30 NAMES double-conversion/double-conversion.h
31 PATHS ${DOUBLE_CONVERSION_ROOT_DIR}/include ${DOUBLE_CONVERSION_INCLUDE_PATHS}
32)
33
34include(FindPackageHandleStandardArgs)
35find_package_handle_standard_args(double_conversion DEFAULT_MSG
36 DOUBLE_CONVERSION_LIBRARIES
37 DOUBLE_CONVERSION_INCLUDE_DIR
38)
39
40mark_as_advanced(
41 DOUBLE_CONVERSION_ROOT_DIR
42 DOUBLE_CONVERSION_LIBRARIES
43 DOUBLE_CONVERSION_INCLUDE_DIR
44)