vcpkg/ports/double-conversion/portfile.cmake

31 lines
879 B
CMake
Raw Normal View History

2016-10-11 13:45:43 +01:00
include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO google/double-conversion
REF 3.1.0
SHA512 ba797a7203bc7eb8ba697dc758a3341578f0405b5ab42fbd5a22d9fac09d11dd8cb5ed9ff9ff369e8ae9397ec74c04c62fca29d1bc469c6d2ea1a84a6dff9188
HEAD_REF master
2016-10-11 13:45:43 +01:00
)
2017-05-23 12:31:09 +03:00
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
2017-08-06 01:10:48 +02:00
PREFER_NINJA
OPTIONS
2017-08-06 01:10:48 +02:00
-DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=True
)
vcpkg_install_cmake()
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
vcpkg_copy_pdbs()
2016-10-11 13:45:43 +01:00
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
# Handle copyright
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/double-conversion/copyright COPYONLY)