mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-22 10:37:10 +01:00
[date] Update to 3.0.0 (#11968)
This commit is contained in:
parent
7e18ac0d8b
commit
2c280eed42
@ -1,24 +1,25 @@
|
|||||||
diff --git i/CMakeLists.txt w/CMakeLists.txt
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
index 885e424..b9e0b43 100644
|
index ad74900..42d55af 100644
|
||||||
--- i/CMakeLists.txt
|
--- a/CMakeLists.txt
|
||||||
+++ w/CMakeLists.txt
|
+++ b/CMakeLists.txt
|
||||||
@@ -72,7 +72,6 @@ target_sources( date INTERFACE
|
@@ -72,7 +72,7 @@ target_sources( date INTERFACE
|
||||||
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include/date/iso_week.h>
|
||||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include/date/julian.h>
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include/date/julian.h>
|
||||||
)
|
)
|
||||||
# public headers will get installed:
|
-if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.15)
|
||||||
-set_target_properties( date PROPERTIES PUBLIC_HEADER include/date/date.h )
|
+if (0)
|
||||||
target_compile_definitions( date INTERFACE
|
# public headers will get installed:
|
||||||
#To workaround libstdc++ issue https://github.com/HowardHinnant/date/issues/388
|
set_target_properties( date PROPERTIES PUBLIC_HEADER include/date/date.h )
|
||||||
ONLY_C_LOCALE=$<IF:$<BOOL:${COMPILE_WITH_C_LOCALE}>,1,0>
|
endif ()
|
||||||
@@ -112,7 +111,6 @@ if( BUILD_TZ_LIB )
|
@@ -115,7 +115,6 @@ if( BUILD_TZ_LIB )
|
||||||
endif( )
|
endif( )
|
||||||
set_target_properties( tz PROPERTIES
|
set_target_properties( date-tz PROPERTIES
|
||||||
POSITION_INDEPENDENT_CODE ON
|
POSITION_INDEPENDENT_CODE ON
|
||||||
- PUBLIC_HEADER "${TZ_HEADERS}"
|
- PUBLIC_HEADER "${TZ_HEADERS}"
|
||||||
VERSION "${PROJECT_VERSION}"
|
VERSION "${PROJECT_VERSION}"
|
||||||
SOVERSION "${PROJECT_VERSION}" )
|
SOVERSION "${PROJECT_VERSION}" )
|
||||||
if( NOT MSVC )
|
if( NOT MSVC )
|
||||||
@@ -136,8 +134,8 @@ write_basic_package_version_file( "${version_config}"
|
@@ -140,8 +139,8 @@ write_basic_package_version_file( "${version_config}"
|
||||||
COMPATIBILITY SameMajorVersion )
|
COMPATIBILITY SameMajorVersion )
|
||||||
|
|
||||||
install( TARGETS date
|
install( TARGETS date
|
||||||
@ -26,6 +27,6 @@ index 885e424..b9e0b43 100644
|
|||||||
- PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/date )
|
- PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/date )
|
||||||
+ EXPORT dateConfig )
|
+ EXPORT dateConfig )
|
||||||
+install( FILES include/date/date.h ${TZ_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/date )
|
+install( FILES include/date/date.h ${TZ_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/date )
|
||||||
export( TARGETS date NAMESPACE date:: FILE dateConfig.cmake )
|
export( TARGETS date NAMESPACE date:: FILE dateTargets.cmake )
|
||||||
|
if (CMAKE_VERSION VERSION_LESS 3.15)
|
||||||
if( BUILD_TZ_LIB )
|
install(
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
Source: date
|
Source: date
|
||||||
Version: 2019-11-08
|
Version: 3.0.0
|
||||||
Homepage: https://github.com/HowardHinnant/date
|
Homepage: https://github.com/HowardHinnant/date
|
||||||
Description: A date and time library based on the C++17 <chrono> header
|
Description: A date and time library based on the C++17 <chrono> header
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
include(vcpkg_common_functions)
|
if(VCPKG_TARGET_IS_WINDOWS)
|
||||||
|
|
||||||
if(NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
|
||||||
message(WARNING
|
message(WARNING
|
||||||
"You will need to also install https://raw.githubusercontent.com/unicode-org/cldr/master/common/supplemental/windowsZones.xml into your install location.\n"
|
"You will need to also install https://raw.githubusercontent.com/unicode-org/cldr/master/common/supplemental/windowsZones.xml into your install location.\n"
|
||||||
"See https://howardhinnant.github.io/date/tz.html"
|
"See https://howardhinnant.github.io/date/tz.html"
|
||||||
@ -10,25 +8,24 @@ endif()
|
|||||||
vcpkg_from_github(
|
vcpkg_from_github(
|
||||||
OUT_SOURCE_PATH SOURCE_PATH
|
OUT_SOURCE_PATH SOURCE_PATH
|
||||||
REPO HowardHinnant/date
|
REPO HowardHinnant/date
|
||||||
REF 3e376be2e9b4d32c946bd83c22601e4b7a1ce421
|
REF cac99da8dc88be719a728dc1b597b0ac307c1800 #3.0.0
|
||||||
SHA512 9dad181f8544bfcff8c42200552b6673e537c53b34fbad11663d6435d4e5fd5a3ac6cabbb76312481c9784b237151d9ccd161bb1b8c54c563fa75073896f3cff
|
SHA512 07bac40c9d92ed92f05ab71b07c203fc341cd35999f1eab16d584bf77ff69e2cdc106931b2faf0dcfc5a311ee55e8445a81fd97c62f4672957b6aac1b24a08fd
|
||||||
HEAD_REF master
|
HEAD_REF master
|
||||||
PATCHES
|
PATCHES
|
||||||
"${CMAKE_CURRENT_LIST_DIR}/0001-fix-uwp.patch"
|
0001-fix-uwp.patch
|
||||||
"${CMAKE_CURRENT_LIST_DIR}/0002-fix-cmake-3.14.patch"
|
0002-fix-cmake-3.14.patch
|
||||||
|
)
|
||||||
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||||
|
INVERTED_FEATURES
|
||||||
|
remote-api USE_SYSTEM_TZ_DB
|
||||||
)
|
)
|
||||||
|
|
||||||
set(DATE_USE_SYSTEM_TZ_DB 1)
|
|
||||||
if("remote-api" IN_LIST FEATURES)
|
|
||||||
set(DATE_USE_SYSTEM_TZ_DB 0)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_configure_cmake(
|
||||||
SOURCE_PATH ${SOURCE_PATH}
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
PREFER_NINJA
|
PREFER_NINJA
|
||||||
OPTIONS
|
OPTIONS
|
||||||
|
${FEATURE_OPTIONS}
|
||||||
-DBUILD_TZ_LIB=ON
|
-DBUILD_TZ_LIB=ON
|
||||||
-DUSE_SYSTEM_TZ_DB=${DATE_USE_SYSTEM_TZ_DB}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
vcpkg_install_cmake()
|
vcpkg_install_cmake()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user