diff options
| author | lizzie <lizzie@eden-emu.dev> | 2026-08-09 02:56:28 +0200 |
|---|---|---|
| committer | crueter <crueter@eden-emu.dev> | 2026-08-09 02:56:28 +0200 |
| commit | c4ab2f6b9eaa65a266ad7b9339eb1fc57983476b (patch) | |
| tree | 09826b1326085753c7f8b9c46c3877a13613b8dc /CMakeLists.txt | |
| parent | dd12266c26f6e1bf0091041d22fbbd68886d0a40 (diff) | |
[cmake] Add ENABLE_WERROR option (#4080)
Should warnings be errors? that's a philosophical debate which I can only answer with "no, but if you think otherwise here is an option for you"
Signed-off-by: lizzie <lizzie@eden-emu.dev>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4080
Reviewed-by: crueter <crueter@eden-emu.dev>
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1039ddfed4..8085604de2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -79,6 +79,7 @@ set(YUZU_QT_MIRROR "" CACHE STRING "What mirror to use for downloading the bundl cmake_dependent_option(YUZU_USE_BUNDLED_QT "Download bundled Qt binaries" "${MSVC}" "ENABLE_QT" OFF) option(ENABLE_DEBUG_TOOLS "Enable debugging tools (maxwell disassembler, SPIRV translator, etc)" OFF) +option(ENABLE_WERROR "Enable -Werror diagnostics" ON) # non-linux bundled qt are static if (YUZU_USE_BUNDLED_QT AND (APPLE OR NOT UNIX)) @@ -157,6 +158,19 @@ if (CXX_CLANG_CL) $<$<COMPILE_LANGUAGE:C,CXX>:-Wno-reserved-identifier> $<$<COMPILE_LANGUAGE:C,CXX>:-Wno-deprecated-declarations> $<$<COMPILE_LANGUAGE:C,CXX>:-Wno-cast-function-type-mismatch> + $<$<COMPILE_LANGUAGE:C,CXX>:-Wno-c99-extensions> + $<$<COMPILE_LANGUAGE:C,CXX>:-Wno-c++17-compat> + $<$<COMPILE_LANGUAGE:C,CXX>:-Wno-c++11-compat-reserved-user-defined-literal> + $<$<COMPILE_LANGUAGE:C,CXX>:-Wno-c++11-compat-deprecated-writable-strings> + $<$<COMPILE_LANGUAGE:C,CXX>:-Wno-c++11-compat-pedantic> + $<$<COMPILE_LANGUAGE:C,CXX>:-Wno-c++11-compat> + $<$<COMPILE_LANGUAGE:C,CXX>:-Wno-c++0x-compat> + $<$<COMPILE_LANGUAGE:C,CXX>:-Wno-c++98-c++11-compat-binary-literal> + $<$<COMPILE_LANGUAGE:C,CXX>:-Wno-c++98-compat-pedantic> + $<$<COMPILE_LANGUAGE:C,CXX>:-Wno-c++98-compat> + $<$<COMPILE_LANGUAGE:C,CXX>:-Wno-c99-compat> + $<$<COMPILE_LANGUAGE:C,CXX>:-Wno-c98-compat> + $<$<COMPILE_LANGUAGE:C,CXX>:-Wno-c99-extensions> $<$<COMPILE_LANGUAGE:C,CXX>:/EHsc>) # REQUIRED CPU features IN Windows-amd64 if (ARCHITECTURE_x86_64) |
