CodeCommitsIssuesPull requestsActionsInsightsSecurity
4364bff3bc805ef630b8cd0bc0c8e55b27cba032

Branches

Tags

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

Clone

HTTPS

Download ZIP

cmake/Modules/Finddouble-conversion.cmake

44lines · modepreview

# - 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
)