diff options
Diffstat (limited to 'graphics/vulkan-sdk/vulkan-validationlayers-cmake.patch')
-rw-r--r-- | graphics/vulkan-sdk/vulkan-validationlayers-cmake.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/graphics/vulkan-sdk/vulkan-validationlayers-cmake.patch b/graphics/vulkan-sdk/vulkan-validationlayers-cmake.patch new file mode 100644 index 0000000000000..797b1435e1aac --- /dev/null +++ b/graphics/vulkan-sdk/vulkan-validationlayers-cmake.patch @@ -0,0 +1,19 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index f328d7c7..45895dd4 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -117,14 +117,6 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang") + -fno-builtin-memcmp + -fvisibility=hidden) + +- # Treat warnings as errors for versions of GCC and c++11-compliant Clang versions that are shipped on Ubuntu 18.04 or older. +- if((CMAKE_COMPILER_IS_GNUCXX AND NOT (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.3.0)) OR +- (("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") AND +- (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 6.0.0) AND +- (CMAKE_CXX_COMPILER_VERSION VERSION_LESS_EQUAL 7.0.0))) +- add_compile_options(-Werror) +- endif() +- + set(CMAKE_C_STANDARD 99) + set(CMAKE_CXX_STANDARD 11) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti") |