]> git.proxmox.com Git - ceph.git/blame - 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
CommitLineData
1e59de90
TL
1diff --git a/CMakeLists.txt b/CMakeLists.txt
2index c83dd83..2d1a7e6 100644
3--- a/CMakeLists.txt
4+++ b/CMakeLists.txt
5@@ -82,9 +82,11 @@ if(HAVE_WERROR_FLAG)
6 option(ENABLE_WERROR "Enable -Werror in all Makefiles" OFF)
7 endif()
8
9+if(MSVC AND NOT WITH_ASM)
10+ add_compile_options(/wd4267 /wd4996)
11+endif()
12+
13 add_compile_options(
14- $<$<BOOL:${MSVC}>:/wd4267>
15- $<$<BOOL:${MSVC}>:/wd4996>
16 $<$<BOOL:${ENABLE_WERROR}>:-Werror>
17 $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<BOOL:${HAVE_WEFFCXX_FLAG}>>:-Weffc++>
18 $<$<AND:$<COMPILE_LANGUAGE:C>,$<BOOL:${HAVE_DECL_AFTER_STMT_FLAG}>>:-Wdeclaration-after-statement>)