diff options
-rw-r--r-- | CMakeLists.txt | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 76c5a23c25..602193fd59 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -451,14 +451,15 @@ else() -Wno-long-long -Wheader-guard ) -if((NOT ENABLE_ASAN) AND (NOT ENABLE_UBSAN)) - # - # Code that may be worth looking into (coding practices) - # - set(COMMON_WARN_FLAGS - -Wframe-larger-than=16384 - ) -endif() + + if((NOT ENABLE_ASAN) AND (NOT ENABLE_UBSAN)) + # + # Code that may be worth looking into (coding practices) + # + set(COMMON_WARN_FLAGS ${COMMON_WARN_FLAGS} + -Wframe-larger-than=16384 + ) + endif() set(C_WARN_FLAGS # The following are C only, not C++ |