2020-06-24 04:37:41 +08:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
2018-04-10 05:46:46 -07:00
|
|
|
message(WARNING
|
2019-05-17 19:13:22 +01:00
|
|
|
"You will need to also install https://raw.githubusercontent.com/unicode-org/cldr/master/common/supplemental/windowsZones.xml into your install location.\n"
|
2018-04-10 05:46:46 -07:00
|
|
|
"See https://howardhinnant.github.io/date/tz.html"
|
|
|
|
)
|
|
|
|
endif()
|
2017-08-31 16:06:18 -07:00
|
|
|
|
2017-08-15 12:47:23 -07:00
|
|
|
vcpkg_from_github(
|
2017-08-31 16:06:18 -07:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO HowardHinnant/date
|
2024-06-27 00:14:27 -04:00
|
|
|
REF 1ead6715dec030d340a316c927c877a3c4e5a00c
|
|
|
|
SHA512 a0b5dd2d94788929a2ba98bd629d64d188ff0ae40affd9338d3d7a94c848ae4d6addc72613964e7fad7f62e4ee20b7170b2133cb39d4e018c604ba35c68d1cff
|
2017-08-31 16:06:18 -07:00
|
|
|
HEAD_REF master
|
2019-11-14 07:14:00 +01:00
|
|
|
PATCHES
|
2020-06-24 04:37:41 +08:00
|
|
|
0001-fix-uwp.patch
|
2023-07-27 02:06:59 +08:00
|
|
|
0002-fix-cmake-install.patch
|
2020-06-24 04:37:41 +08:00
|
|
|
)
|
2021-10-06 01:16:05 +02:00
|
|
|
|
2020-06-24 04:37:41 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
INVERTED_FEATURES
|
|
|
|
remote-api USE_SYSTEM_TZ_DB
|
2017-08-15 12:47:23 -07:00
|
|
|
)
|
2018-04-10 05:46:46 -07:00
|
|
|
|
2021-10-06 01:16:05 +02:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-09-17 20:39:29 +02:00
|
|
|
OPTIONS
|
2021-10-06 01:16:05 +02:00
|
|
|
${FEATURE_OPTIONS}
|
2019-11-14 07:14:00 +01:00
|
|
|
-DBUILD_TZ_LIB=ON
|
2017-08-15 12:47:23 -07:00
|
|
|
)
|
|
|
|
|
2021-10-06 01:16:05 +02:00
|
|
|
vcpkg_cmake_install()
|
2023-07-27 02:06:59 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/date)
|
2018-04-10 05:46:46 -07:00
|
|
|
|
2017-08-31 16:06:18 -07:00
|
|
|
vcpkg_copy_pdbs()
|
2017-08-15 12:47:23 -07:00
|
|
|
|
2021-10-06 01:16:05 +02:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-09-17 20:39:29 +02:00
|
|
|
|
2023-07-13 11:36:02 -07:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|
2023-07-27 02:06:59 +08:00
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|