aboutsummaryrefslogtreecommitdiff
path: root/ports/spdlog/fix-error-4275.patch
blob: 4d1d8ee7d42b56ae8a48e923559217b179be16ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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()