Allow building with cmake --compile-no-warning-as-error. (#2401)

In CMake 3.24+, there is built-in support for adding -Werror that does
not require adding -Werror explicitly, and allows it to be downgraded to
a warning if the user wants that. Use this, to account for warnings that
have false positives.
This commit is contained in:
Harald van Dijk
2025-07-01 21:00:34 +01:00
committed by GitHub
parent 9265cbb2c2
commit 73f22aa23f
4 changed files with 8 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories (${CLConform_INCLUDE_DIR})
list(APPEND CLConform_LIBRARIES vulkan_wrapper)
set(CMAKE_COMPILE_WARNING_AS_ERROR OFF)
set(CMAKE_CXX_FLAGS "-fpermissive")
include_directories("../../common/vulkan_wrapper")