From edc567331dbb1580bebed76b5d5d11f6d5204a79 Mon Sep 17 00:00:00 2001 From: portersky Date: Mon, 5 Oct 2026 18:36:25 +0200 Subject: [PATCH] fix: Add back remove warning as error --- cmat/CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmat/CMakeLists.txt b/cmat/CMakeLists.txt index 3bd71f8..bc6e94f 100644 --- a/cmat/CMakeLists.txt +++ b/cmat/CMakeLists.txt @@ -18,11 +18,11 @@ # Legacy course material: keep the project's warning flags but drop -Werror; # these old sources produce warnings that must not block the build. set(CMAT_OPTIONS "") -# foreach (opt IN LISTS BASE_OPTIONS) -# if (NOT opt STREQUAL "-Werror" AND NOT opt STREQUAL "/WX") -# list(APPEND CMAT_OPTIONS "${opt}") -# endif() -# endforeach() +foreach (opt IN LISTS BASE_OPTIONS) + if (NOT opt STREQUAL "-Werror" AND NOT opt STREQUAL "/WX") + list(APPEND CMAT_OPTIONS "${opt}") + endif() +endforeach() # ------------------------------------------------------------------------------ # Keyboard/Screen support (DOS_Unix/)