From 96e179465884be74987d5847d6741cdabdfe1b48 Mon Sep 17 00:00:00 2001 From: Merry Date: Fri, 1 Sep 2023 21:09:34 +0100 Subject: [PATCH] CMakeLists: Only enable -pendantic-errors when DYNARMIC_WARNINGS_AS_ERRORS enabled --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index eb924099..a8893f3a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -91,11 +91,11 @@ else() -Wextra -Wcast-qual -pedantic - -pedantic-errors -Wno-missing-braces) if (DYNARMIC_WARNINGS_AS_ERRORS) list(APPEND DYNARMIC_CXX_FLAGS + -pedantic-errors -Werror) endif()