mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 20:23:02 +08:00
[date] Update to 2.3
This commit is contained in:
parent
6290155eaa
commit
6b6fa2ab37
@ -8,9 +8,9 @@ endif()
|
||||
add_definitions(-DNOMINMAX)
|
||||
|
||||
|
||||
include_directories(".")
|
||||
include_directories("./include")
|
||||
|
||||
add_library(tz tz.cpp)
|
||||
add_library(tz src/tz.cpp)
|
||||
|
||||
if(BUILD_SHARED_LIBS)
|
||||
target_compile_definitions(tz PRIVATE -DDATE_BUILD_DLL)
|
||||
@ -26,5 +26,5 @@ install(
|
||||
)
|
||||
|
||||
if(NOT DISABLE_INSTALL_HEADERS)
|
||||
install(FILES date.h tz.h julian.h iso_week.h islamic.h DESTINATION include)
|
||||
install(FILES include/date/date.h include/date/tz.h include/date/julian.h include/date/iso_week.h include/date/islamic.h DESTINATION include/date)
|
||||
endif()
|
||||
|
@ -1,3 +1,3 @@
|
||||
Source: date
|
||||
Version: 2.2
|
||||
Version: 2.3
|
||||
Description: A date and time library based on the C++11/14/17 <chrono> header
|
||||
|
@ -8,8 +8,8 @@ message(WARNING
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO HowardHinnant/date
|
||||
REF 272d487b3d490126e520b67fe76bbb2e67226c07
|
||||
SHA512 59e8ff642d3eb82cb6116a77d4c5e14bbc2ae6bd4019e64a49609b6e46d679c2cb4ccae74807b72223aed18ae015596193919cdb58b011bfb774ff3e29a1d43b
|
||||
REF 2.3
|
||||
SHA512 d629f2fb1403913ed276bec9c6fd72b8eb16067663e188b7be0c22c2621332f5b46f1eed166874b7a27f90b08fca8a5509b49f395611a1af5ca73385953e3abe
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
@ -25,7 +25,7 @@ vcpkg_install_cmake()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
set(HEADER "${CURRENT_PACKAGES_DIR}/include/tz.h")
|
||||
set(HEADER "${CURRENT_PACKAGES_DIR}/include/date/tz.h")
|
||||
file(READ "${HEADER}" _contents)
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
string(REPLACE "DATE_BUILD_DLL" "1" _contents "${_contents}")
|
||||
|
Loading…
Reference in New Issue
Block a user