summaryrefslogtreecommitdiff
path: root/cmake/CompileFlags.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/CompileFlags.cmake')
-rw-r--r--cmake/CompileFlags.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/CompileFlags.cmake b/cmake/CompileFlags.cmake
index 05c19abab..9287ca249 100644
--- a/cmake/CompileFlags.cmake
+++ b/cmake/CompileFlags.cmake
@@ -31,7 +31,7 @@ macro(compile_flags)
# it does not appear to support the $<> tags.
add_compile_options(
"$<$<CONFIG:Debug>:-D_DEBUG>"
- "$<$<CONFIG:Debug>:-D_FORTIFY_SOURCE=2>"
+ "$<$<NOT:$<CONFIG:Debug>>:-D_FORTIFY_SOURCE=2>" # FORTIFY_SOURCE should only be used in non-debug builds (requires -O1+)
)
# Prepare a generator that checks if we are not a debug, and don't have asserts