1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-04-18 17:24:03 +03:00
mvfst/cmake/FindDoubleConversion.cmake
Hani Damlaj 00e67c1bf9 mvfst License Header Update
Reviewed By: lnicco

Differential Revision: D33587012

fbshipit-source-id: 972eb440f0156c9c04aa6e8787561b18295c1a97
2022-01-18 13:56:12 -08:00

31 lines
1.0 KiB
CMake

# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# - Try to find double-conversion
# Once done, this will define
#
# DOUBLE_CONVERSION_FOUND - system has double-conversion
# DOUBLE_CONVERSION_INCLUDE_DIRS - the double-conversion include directories
# DOUBLE_CONVERSION_LIBRARIES - link these to use double-conversion
include(FindPackageHandleStandardArgs)
find_library(DOUBLE_CONVERSION_LIBRARY double-conversion
PATHS ${DOUBLE_CONVERSION_LIBRARYDIR})
find_path(DOUBLE_CONVERSION_INCLUDE_DIR double-conversion/double-conversion.h
PATHS ${DOUBLE_CONVERSION_INCLUDEDIR})
find_package_handle_standard_args(double_conversion DEFAULT_MSG
DOUBLE_CONVERSION_LIBRARY
DOUBLE_CONVERSION_INCLUDE_DIR)
mark_as_advanced(
DOUBLE_CONVERSION_LIBRARY
DOUBLE_CONVERSION_INCLUDE_DIR)
set(DOUBLE_CONVERSION_LIBRARIES ${DOUBLE_CONVERSION_LIBRARY})
set(DOUBLE_CONVERSION_INCLUDE_DIRS ${DOUBLE_CONVERSION_INCLUDE_DIR})