diff --git a/deps/patches/gcc_warn.patch b/deps/patches/gcc_warn.patch deleted file mode 100644 index 8dba16d8..00000000 --- a/deps/patches/gcc_warn.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- CMakeLists.txt 2024-08-28 12:32:22 -+++ CMakeLists.txt 2024-08-28 12:32:42 -@@ -54,7 +54,7 @@ - -Wswitch - -Wunused-parameter - ) --if("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU") -+if("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 8.0) - set(PROJ_common_WARN_FLAGS ${PROJ_common_WARN_FLAGS} - -Wduplicated-cond - -Wduplicated-branches diff --git a/deps/patches/gcc_warn_wasm.patch b/deps/patches/gcc_warn_wasm.patch deleted file mode 100644 index 8dba16d8..00000000 --- a/deps/patches/gcc_warn_wasm.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- CMakeLists.txt 2024-08-28 12:32:22 -+++ CMakeLists.txt 2024-08-28 12:32:42 -@@ -54,7 +54,7 @@ - -Wswitch - -Wunused-parameter - ) --if("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU") -+if("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 8.0) - set(PROJ_common_WARN_FLAGS ${PROJ_common_WARN_FLAGS} - -Wduplicated-cond - -Wduplicated-branches diff --git a/deps/patches/proj.patch b/deps/patches/proj.patch index e69de29b..8dba16d8 100644 --- a/deps/patches/proj.patch +++ b/deps/patches/proj.patch @@ -0,0 +1,11 @@ +--- CMakeLists.txt 2024-08-28 12:32:22 ++++ CMakeLists.txt 2024-08-28 12:32:42 +@@ -54,7 +54,7 @@ + -Wswitch + -Wunused-parameter + ) +-if("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU") ++if("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 8.0) + set(PROJ_common_WARN_FLAGS ${PROJ_common_WARN_FLAGS} + -Wduplicated-cond + -Wduplicated-branches