2016-10-11 13:45:43 +01:00
|
|
|
include(vcpkg_common_functions)
|
2017-05-28 05:28:34 -07:00
|
|
|
|
2019-05-02 22:57:43 -07:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2017-05-28 05:28:34 -07:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO google/double-conversion
|
2019-08-19 20:06:16 +04:30
|
|
|
REF v3.1.5
|
|
|
|
SHA512 0aeabdbfa06c3c4802905ac4bf8c2180840577677b47d45e1c91034fe07746428c9db79260ce6bdbdf8b584746066cea9247ba43a9c38155caf1ef44e214180a
|
2017-05-28 05:28:34 -07:00
|
|
|
HEAD_REF master
|
2016-10-11 13:45:43 +01:00
|
|
|
)
|
2017-05-23 12:31:09 +03:00
|
|
|
|
2017-05-28 05:28:34 -07:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2017-08-06 01:10:48 +02:00
|
|
|
PREFER_NINJA
|
2017-05-28 05:28:34 -07:00
|
|
|
)
|
|
|
|
|
2016-11-01 17:37:15 -04:00
|
|
|
vcpkg_install_cmake()
|
2017-05-28 05:28:34 -07:00
|
|
|
|
2017-08-06 01:10:48 +02:00
|
|
|
# Rename exported target files into something vcpkg_fixup_cmake_targets expects
|
2018-03-21 11:34:24 -07:00
|
|
|
if(EXISTS ${CURRENT_PACKAGES_DIR}/lib/cmake/double-conversion)
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/double-conversion)
|
|
|
|
endif()
|
2016-10-11 13:45:43 +01:00
|
|
|
|
2017-05-28 05:28:34 -07:00
|
|
|
vcpkg_copy_pdbs()
|
2016-10-11 13:45:43 +01:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
|
|
|
# Handle copyright
|
2018-10-26 06:53:48 +08:00
|
|
|
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/double-conversion/copyright COPYONLY)
|