Skip to content

Commit 8a526b6

Browse files
committed
test: _FORTIFY_SOURCE should be defined only once
1 parent 388fced commit 8a526b6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/myproj/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ project_options(
8888
# CLANG_WARNINGS "-Weverything"
8989
LINKER
9090
"${LINKER}"
91+
92+
# Test if _FORTIFY_SOURCE is defined only once when ENABLE_OVERFLOW_PROTECTION
93+
ENABLE_OVERFLOW_PROTECTION
94+
CLANG_TIDY_EXTRA_ARGUMENTS "-warnings-as-errors=clang-diagnostic-macro-redefined"
9195
)
9296
# NOTE: project_options and project_warnings are defined inside project_options
9397

0 commit comments

Comments
 (0)