aboutsummaryrefslogtreecommitdiff
path: root/ports/spdlog/fix-mingw-build.patch
diff options
context:
space:
mode:
authorJack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>2021-04-28 03:44:31 +0800
committerGitHub <noreply@github.com>2021-04-27 12:44:31 -0700
commitb9cd2a7958dec657fb869ec487d2a98cf39a8d48 (patch)
tree3804a6e910f54401f7f89018d978a9c40b4a0599 /ports/spdlog/fix-mingw-build.patch
parent546813ae7b9e2873dd3d38e78b27ac5582feae10 (diff)
downloadvcpkg-b9cd2a7958dec657fb869ec487d2a98cf39a8d48.tar.gz
vcpkg-b9cd2a7958dec657fb869ec487d2a98cf39a8d48.zip
[spdlog] Fix mingW build (#17511)
* [spdlog] Fix mingW build * update version record
Diffstat (limited to 'ports/spdlog/fix-mingw-build.patch')
-rw-r--r--ports/spdlog/fix-mingw-build.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/ports/spdlog/fix-mingw-build.patch b/ports/spdlog/fix-mingw-build.patch
new file mode 100644
index 000000000..a82a9d10b
--- /dev/null
+++ b/ports/spdlog/fix-mingw-build.patch
@@ -0,0 +1,13 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index b969465..31e23cd 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -136,7 +136,7 @@ if(SPDLOG_BUILD_SHARED OR BUILD_SHARED_LIBS)
+ endif()
+ add_library(spdlog SHARED ${SPDLOG_SRCS} ${SPDLOG_ALL_HEADERS})
+ target_compile_definitions(spdlog PUBLIC SPDLOG_SHARED_LIB)
+- if(MSVC)
++ if(MSVC AND NOT MINGW)
+ target_compile_options(spdlog PUBLIC
+ $<$<AND:$<CXX_COMPILER_ID:MSVC>,$<NOT:$<COMPILE_LANGUAGE:CUDA>>>:/wd4251 /wd4275>)
+ endif()