We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9bbe657 + 17266f0 commit ea95fa6Copy full SHA for ea95fa6
stfpy/CMakeLists.txt
@@ -11,6 +11,11 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
11
add_link_options(-Wno-unused-command-line-argument -Wno-ignored-optimization-argument)
12
endif()
13
14
+# Disable _FORTIFY_SOURCE unless we're in Release mode
15
+if (NOT CMAKE_BUILD_TYPE MATCHES "^[Rr]elease")
16
+ add_compile_options(-U_FORTIFY_SOURCE -Wp,-U_FORTIFY_SOURCE)
17
+endif()
18
+
19
get_directory_property(include_dirs INCLUDE_DIRECTORIES)
20
get_directory_property(compile_opts COMPILE_OPTIONS)
21
get_directory_property(link_opts LINK_OPTIONS)
0 commit comments