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/)