summaryrefslogtreecommitdiffstats
path: root/graphics/vulkan-sdk/vulkan-loader-cmake.patch
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/vulkan-sdk/vulkan-loader-cmake.patch')
-rw-r--r--graphics/vulkan-sdk/vulkan-loader-cmake.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/graphics/vulkan-sdk/vulkan-loader-cmake.patch b/graphics/vulkan-sdk/vulkan-loader-cmake.patch
new file mode 100644
index 0000000000..dcb63fd6cc
--- /dev/null
+++ b/graphics/vulkan-sdk/vulkan-loader-cmake.patch
@@ -0,0 +1,13 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index d15214545..fe277fcd6 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -138,7 +138,7 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
+ # all compilers until they all accept the C++17 standard
+ if(CMAKE_COMPILER_IS_GNUCC)
+ set(COMMON_COMPILE_FLAGS "${COMMON_COMPILE_FLAGS} -Wno-stringop-truncation -Wno-stringop-overflow")
+- if(CMAKE_CXX_COMPILER_VERSION GREATER_EQUAL 7.1)
++ if(CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL 7.1 OR CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.1)
+ set(COMMON_COMPILE_FLAGS "${COMMON_COMPILE_FLAGS} -Wimplicit-fallthrough=0")
+ endif()
+ endif()