vcpkg/ports/double-conversion/portfile.cmake

28 lines
835 B
CMake
Raw Normal View History

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO google/double-conversion
REF 9e0c13564e17362aad8a32c1344a2214f71952c6 #v3.2.0
SHA512 4579ae02196a2722cbce2888a404d026d62523256aa5f726c4b46aa25aa76d3caaf653848afb88939aac697049afc8968ddecda8a093520b392c9f963559a992
HEAD_REF master
2016-10-11 20:45:43 +08:00
)
2017-05-23 17:31:09 +08:00
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)
vcpkg_cmake_install()
2017-08-06 07:10:48 +08:00
# Rename exported target files into something vcpkg_fixup_cmake_targets expects
if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/cmake/${PORT}")
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
2018-03-22 02:34:24 +08:00
endif()
2016-10-11 20:45:43 +08:00
vcpkg_copy_pdbs()
2016-10-11 20:45:43 +08:00
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
2016-10-11 20:45:43 +08:00
# Handle copyright
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)