2020-06-24 04:37:41 +08:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
2018-04-10 20:46:46 +08:00
|
|
|
message(WARNING
|
2019-05-18 02:13:22 +08: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 20:46:46 +08:00
|
|
|
"See https://howardhinnant.github.io/date/tz.html"
|
|
|
|
)
|
|
|
|
endif()
|
2017-09-01 07:06:18 +08:00
|
|
|
|
2017-08-16 03:47:23 +08:00
|
|
|
vcpkg_from_github(
|
2017-09-01 07:06:18 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO HowardHinnant/date
|
2021-10-06 07:16:05 +08:00
|
|
|
REF v3.0.1
|
|
|
|
SHA512 6BDC7CBA821D66E17A559250CC0CE0095808E9DB81CEC9E16EAA4C31ABDFA705299C67B72016D9B06B302BC306D063E83A374EB00728071B83A5AD650D59034F
|
2017-09-01 07:06:18 +08:00
|
|
|
HEAD_REF master
|
2019-11-14 14:14:00 +08:00
|
|
|
PATCHES
|
2020-06-24 04:37:41 +08:00
|
|
|
0001-fix-uwp.patch
|
|
|
|
0002-fix-cmake-3.14.patch
|
|
|
|
)
|
2021-10-06 07:16:05 +08: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-16 03:47:23 +08:00
|
|
|
)
|
2018-04-10 20:46:46 +08:00
|
|
|
|
2021-10-06 07:16:05 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-09-18 02:39:29 +08:00
|
|
|
OPTIONS
|
2021-10-06 07:16:05 +08:00
|
|
|
${FEATURE_OPTIONS}
|
2019-11-14 14:14:00 +08:00
|
|
|
-DBUILD_TZ_LIB=ON
|
2017-08-16 03:47:23 +08:00
|
|
|
)
|
|
|
|
|
2021-10-06 07:16:05 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-08-16 03:47:23 +08:00
|
|
|
|
2021-02-04 03:40:02 +08:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
2021-10-06 07:16:05 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH CMake)
|
2019-09-18 02:39:29 +08:00
|
|
|
else()
|
2021-10-06 07:16:05 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/date)
|
2019-09-18 02:39:29 +08:00
|
|
|
endif()
|
2018-04-10 20:46:46 +08:00
|
|
|
|
2017-09-01 07:06:18 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2017-08-16 03:47:23 +08:00
|
|
|
|
2021-10-06 07:16:05 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-09-18 02:39:29 +08:00
|
|
|
|
2021-10-06 07:16:05 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|