]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/date/portfile.cmake
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / date / portfile.cmake
1 if(VCPKG_TARGET_IS_WINDOWS)
2 message(WARNING
3 "You will need to also install https://raw.githubusercontent.com/unicode-org/cldr/master/common/supplemental/windowsZones.xml into your install location.\n"
4 "See https://howardhinnant.github.io/date/tz.html"
5 )
6 endif()
7
8 vcpkg_from_github(
9 OUT_SOURCE_PATH SOURCE_PATH
10 REPO HowardHinnant/date
11 REF cac99da8dc88be719a728dc1b597b0ac307c1800 #3.0.0
12 SHA512 07bac40c9d92ed92f05ab71b07c203fc341cd35999f1eab16d584bf77ff69e2cdc106931b2faf0dcfc5a311ee55e8445a81fd97c62f4672957b6aac1b24a08fd
13 HEAD_REF master
14 PATCHES
15 0001-fix-uwp.patch
16 0002-fix-cmake-3.14.patch
17 0003-find-dependency-pthread.patch
18 )
19 vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
20 INVERTED_FEATURES
21 remote-api USE_SYSTEM_TZ_DB
22 )
23
24 vcpkg_configure_cmake(
25 SOURCE_PATH ${SOURCE_PATH}
26 PREFER_NINJA
27 OPTIONS
28 ${FEATURE_OPTIONS}
29 -DBUILD_TZ_LIB=ON
30 )
31
32 vcpkg_install_cmake()
33
34 if(VCPKG_TARGET_IS_WINDOWS)
35 vcpkg_fixup_cmake_targets(CONFIG_PATH CMake TARGET_PATH share/date)
36 else()
37 vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/date TARGET_PATH share/date)
38 endif()
39
40 vcpkg_copy_pdbs()
41
42 file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
43
44 file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/date RENAME copyright)