CMakeLists: Only enable -pendantic-errors when DYNARMIC_WARNINGS_AS_ERRORS enabled
This commit is contained in:
parent
29dde29560
commit
96e1794658
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue