]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/libflac/fix-compile-options.patch
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / libflac / fix-compile-options.patch
diff --git a/ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/libflac/fix-compile-options.patch b/ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/libflac/fix-compile-options.patch
new file mode 100644 (file)
index 0000000..9d438da
--- /dev/null
@@ -0,0 +1,18 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index c83dd83..2d1a7e6 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -82,9 +82,11 @@ if(HAVE_WERROR_FLAG)
+     option(ENABLE_WERROR "Enable -Werror in all Makefiles" OFF)
+ endif()
++if(MSVC AND NOT WITH_ASM)
++    add_compile_options(/wd4267 /wd4996)
++endif()
++
+ add_compile_options(
+-    $<$<BOOL:${MSVC}>:/wd4267>
+-    $<$<BOOL:${MSVC}>:/wd4996>
+     $<$<BOOL:${ENABLE_WERROR}>:-Werror>
+     $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<BOOL:${HAVE_WEFFCXX_FLAG}>>:-Weffc++>
+     $<$<AND:$<COMPILE_LANGUAGE:C>,$<BOOL:${HAVE_DECL_AFTER_STMT_FLAG}>>:-Wdeclaration-after-statement>)