aboutsummaryrefslogtreecommitdiff
path: root/vcpkg-ports/libflac/fix-compile-options.patch
diff options
context:
space:
mode:
authorJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
committerJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
commit20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch)
tree12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /vcpkg-ports/libflac/fix-compile-options.patch
parent537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff)
downloadwinamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz
Initial community commit
Diffstat (limited to 'vcpkg-ports/libflac/fix-compile-options.patch')
-rw-r--r--vcpkg-ports/libflac/fix-compile-options.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/vcpkg-ports/libflac/fix-compile-options.patch b/vcpkg-ports/libflac/fix-compile-options.patch
new file mode 100644
index 00000000..9d438da0
--- /dev/null
+++ b/vcpkg-ports/libflac/fix-compile-options.patch
@@ -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>)