diff options
| author | wangli28 <wangli28@beyondsoft.com> | 2020-04-09 02:25:59 +0000 |
|---|---|---|
| committer | wangli28 <wangli28@beyondsoft.com> | 2020-04-09 02:27:36 +0000 |
| commit | 279867cb0c22b1251c5dd50f2dc17030ed9861c9 (patch) | |
| tree | a58e6f5e28d2683f8649736ed4a08f76a9353fe0 | |
| parent | 0304c453157e05b52b04039602a806564bd011c2 (diff) | |
| download | vcpkg-279867cb0c22b1251c5dd50f2dc17030ed9861c9.tar.gz vcpkg-279867cb0c22b1251c5dd50f2dc17030ed9861c9.zip | |
[fmt] update to 6.2.0
| -rw-r--r-- | ports/fmt/CONTROL | 2 | ||||
| -rw-r--r-- | ports/fmt/fix-warning4189.patch | 10 | ||||
| -rw-r--r-- | ports/fmt/portfile.cmake | 10 |
3 files changed, 11 insertions, 11 deletions
diff --git a/ports/fmt/CONTROL b/ports/fmt/CONTROL index 48f758b10..021d5cc46 100644 --- a/ports/fmt/CONTROL +++ b/ports/fmt/CONTROL @@ -1,4 +1,4 @@ Source: fmt -Version: 6.1.2 +Version: 6.2.0 Homepage: https://github.com/fmtlib/fmt Description: Formatting library for C++. It can be used as a safe alternative to printf or as a fast alternative to IOStreams. diff --git a/ports/fmt/fix-warning4189.patch b/ports/fmt/fix-warning4189.patch index 5c2537954..0efab0f1c 100644 --- a/ports/fmt/fix-warning4189.patch +++ b/ports/fmt/fix-warning4189.patch @@ -1,11 +1,11 @@ diff --git a/include/fmt/format.h b/include/fmt/format.h -index 01f41f5c..208a58d0 100644 +index 4e96539..0f1d179 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h -@@ -35,6 +35,7 @@ - - #include "core.h" - +@@ -33,6 +33,7 @@ + #ifndef FMT_FORMAT_H_ + #define FMT_FORMAT_H_ + +#pragma warning(disable:4189) #include <algorithm> #include <cerrno> diff --git a/ports/fmt/portfile.cmake b/ports/fmt/portfile.cmake index bc21d97a3..82d821ef9 100644 --- a/ports/fmt/portfile.cmake +++ b/ports/fmt/portfile.cmake @@ -1,8 +1,8 @@ vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO fmtlib/fmt - REF 6.1.2 - SHA512 8770bf4bd2bb6d938e75e0cf1e665c41930dbd9d2a6825274a5a43cd1d85b9c9ca621bb040ed099429f0e16bddbc3399361c453eb1bf3fc01376e6ad9dd875b7 + REF 9bdd1596cef1b57b9556f8bef32dc4a32322ef3e#version 6.2.0 + SHA512 3639b4984a88fc5495c6cb1a0a09bb0a13f5dc05286f5a2b15e60dfda780bcc1fe213497006cc27247c3c358be27d8af4dd995db2b3de0f6a5a1288dc1058585 HEAD_REF master PATCHES fix-warning4189.patch ) @@ -16,9 +16,9 @@ vcpkg_configure_cmake( ) vcpkg_install_cmake() -file(INSTALL ${SOURCE_PATH}/LICENSE.rst DESTINATION ${CURRENT_PACKAGES_DIR}/share/fmt RENAME copyright) +file(INSTALL ${SOURCE_PATH}/LICENSE.rst DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic) - if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" OR NOT VCPKG_CMAKE_SYSTEM_NAME) + if(VCPKG_TARGET_IS_WINDOWS) if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug") if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/lib/fmtd.dll") file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/debug/bin) @@ -42,7 +42,7 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) vcpkg_fixup_cmake_targets() -if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" OR NOT VCPKG_CMAKE_SYSTEM_NAME) +if(VCPKG_TARGET_IS_WINDOWS) if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug") file(READ ${CURRENT_PACKAGES_DIR}/share/fmt/fmt-targets-debug.cmake FMT_DEBUG_MODULE) string(REPLACE "lib/fmtd.dll" "bin/fmtd.dll" FMT_DEBUG_MODULE ${FMT_DEBUG_MODULE}) |
