fix invalid command (#23335)

This commit is contained in:
Mengna Li 2022-03-03 06:53:33 +08:00 committed by GitHub
parent f9f18a0d03
commit 4534601219
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,11 @@
diff --git a/include/fmt/locale.h b/include/fmt/locale.h
index 7571b52..0a34eb4 100644
--- a/include/fmt/locale.h
+++ b/include/fmt/locale.h
@@ -1,2 +1,6 @@
#include "xchar.h"
+#ifdef _WIN32
+#pragma message ("fmt/locale.h is deprecated, include fmt/format.h or fmt/xchar.h instead")
+#else
#warning fmt/locale.h is deprecated, include fmt/format.h or fmt/xchar.h instead
+#endif

View File

@ -6,6 +6,7 @@ vcpkg_from_github(
HEAD_REF master
PATCHES
fix-write-batch.patch
fix-invalid-command.patch
)
vcpkg_cmake_configure(

View File

@ -1,6 +1,7 @@
{
"name": "fmt",
"version": "8.1.1",
"port-version": 1,
"description": "Formatting library for C++. It can be used as a safe alternative to printf or as a fast alternative to IOStreams.",
"homepage": "https://github.com/fmtlib/fmt",
"dependencies": [

View File

@ -2230,7 +2230,7 @@
},
"fmt": {
"baseline": "8.1.1",
"port-version": 0
"port-version": 1
},
"folly": {
"baseline": "2022.01.31.00",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "602d9743b7957c9e82a06d0e81d58637c6df5222",
"version": "8.1.1",
"port-version": 1
},
{
"git-tree": "9748716da169977423d02b3c3f0de7b7f274e34e",
"version": "8.1.1",