mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 14:29:00 +08:00
14 lines
527 B
Diff
14 lines
527 B
Diff
|
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()
|