mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 06:19:01 +08:00
ca1e2ec6b3
* [spdlog]Upgrade version to 1.4.2 * [spdlog]Do not remove these libraries. * [spdlog]Fix error C4275 when use fmt. * [spdlog]Re-fix C4275 error. * [spdlog]Re-fix C4275 error. * [spdlog]Disable build on uwp. * [spdlog]Fix build with uwp.
16 lines
478 B
Diff
16 lines
478 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index cd17178..c9910e1 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -126,6 +126,10 @@ if(SPDLOG_FMT_EXTERNAL)
|
|
|
|
target_compile_definitions(spdlog_header_only INTERFACE SPDLOG_FMT_EXTERNAL)
|
|
target_link_libraries(spdlog_header_only INTERFACE fmt::fmt)
|
|
+
|
|
+ if (WIN32)
|
|
+ target_compile_options(spdlog PRIVATE /wd4275)
|
|
+ endif()
|
|
|
|
set(PKG_CONFIG_REQUIRES fmt) # add dependecy to pkg-config
|
|
endif()
|