diff options
| author | Lily <47812810+LilyWangL@users.noreply.github.com> | 2020-10-29 15:07:48 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-29 00:07:48 -0700 |
| commit | 4596fed3163064b91d4542690939b3fc113d034e (patch) | |
| tree | 359f053162716a2b7a47980609dc7c0a46573b17 /ports/spdlog/fix-featurebuild.patch | |
| parent | 1b1c17de8206231831b2bc8a06cff80506184be1 (diff) | |
| download | vcpkg-4596fed3163064b91d4542690939b3fc113d034e.tar.gz vcpkg-4596fed3163064b91d4542690939b3fc113d034e.zip | |
[spdlog] Fix feature spdlog[benchmark] build error (#14274)
Diffstat (limited to 'ports/spdlog/fix-featurebuild.patch')
| -rw-r--r-- | ports/spdlog/fix-featurebuild.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/ports/spdlog/fix-featurebuild.patch b/ports/spdlog/fix-featurebuild.patch new file mode 100644 index 000000000..1b90c5a99 --- /dev/null +++ b/ports/spdlog/fix-featurebuild.patch @@ -0,0 +1,39 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 3a7663b..3e554d6 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -171,7 +171,7 @@ target_link_libraries(spdlog_header_only INTERFACE Threads::Threads) + # --------------------------------------------------------------------------------------- + if (SPDLOG_FMT_EXTERNAL OR SPDLOG_FMT_EXTERNAL_HO) + if (NOT TARGET fmt::fmt) +- find_package(fmt 5.3.0 REQUIRED) ++ find_package(fmt CONFIG REQUIRED) + endif () + target_compile_definitions(spdlog PUBLIC SPDLOG_FMT_EXTERNAL) + target_compile_definitions(spdlog_header_only INTERFACE SPDLOG_FMT_EXTERNAL) +diff --git a/bench/async_bench.cpp b/bench/async_bench.cpp +index d4167a4..ccb5406 100644 +--- a/bench/async_bench.cpp ++++ b/bench/async_bench.cpp +@@ -9,7 +9,7 @@ + #include "spdlog/spdlog.h" + #include "spdlog/async.h" + #include "spdlog/sinks/basic_file_sink.h" +-#include "spdlog/fmt/bundled/locale.h" ++#include <fmt/locale.h> + + #include "utils.h" + #include <atomic> +diff --git a/bench/bench.cpp b/bench/bench.cpp +index b7d2fc7..e2f8109 100644 +--- a/bench/bench.cpp ++++ b/bench/bench.cpp +@@ -11,7 +11,7 @@ + #include "spdlog/sinks/daily_file_sink.h" + #include "spdlog/sinks/null_sink.h" + #include "spdlog/sinks/rotating_file_sink.h" +-#include "spdlog/fmt/bundled/locale.h" ++#include <fmt/locale.h> + + #include "utils.h" + #include <atomic> |
