We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents afd9b2f + f1342cd commit 963ed33Copy full SHA for 963ed33
cmake/Hardening.cmake
@@ -17,7 +17,9 @@ macro(
17
set(NEW_CXX_DEFINITIONS "${NEW_CXX_DEFINITIONS} -D_GLIBCXX_ASSERTIONS")
18
message(STATUS "*** GLIBC++ Assertions (vector[], string[], ...) enabled")
19
20
- set(NEW_COMPILE_OPTIONS "${NEW_COMPILE_OPTIONS} -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3")
+ if(NOT CMAKE_BUILD_TYPE MATCHES "Debug")
21
+ set(NEW_COMPILE_OPTIONS "${NEW_COMPILE_OPTIONS} -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3")
22
+ endif()
23
message(STATUS "*** g++/clang _FORTIFY_SOURCE=3 enabled")
24
25
# check_cxx_compiler_flag(-fpie PIE)
0 commit comments