Use std::nullptr_t in dynamic
[folly.git] / CMake / FindDoubleConversion.cmake
1 # Finds libdouble-conversion.
2 #
3 # This module defines:
4 # DOUBLE_CONVERSION_INCLUDE_DIR
5 # DOUBLE_CONVERSION_LIBRARY
6 #
7
8 find_path(DOUBLE_CONVERSION_INCLUDE_DIR double-conversion/double-conversion.h)
9 find_library(DOUBLE_CONVERSION_LIBRARY NAMES double-conversion)
10
11 include(FindPackageHandleStandardArgs)
12 FIND_PACKAGE_HANDLE_STANDARD_ARGS(
13     DOUBLE_CONVERSION DEFAULT_MSG
14     DOUBLE_CONVERSION_LIBRARY DOUBLE_CONVERSION_INCLUDE_DIR)
15
16 if (NOT DOUBLE_CONVERSION_FOUND)
17   message(STATUS "Using third-party bundled double-conversion")
18 else()
19   message(STATUS "Found double-conversion: ${DOUBLE_CONVERSION_LIBRARY}")
20 endif (NOT DOUBLE_CONVERSION_FOUND)
21
22 mark_as_advanced(DOUBLE_CONVERSION_INCLUDE_DIR DOUBLE_CONVERSION_LIBRARY)