Better fix for _FORTIFY_SOURCE
This commit is contained in:
parent
4f62cf9011
commit
a061457cda
|
@ -117,8 +117,7 @@ else()
|
|||
|
||||
if (NOT CMAKE_BUILD_TYPE STREQUAL Debug)
|
||||
# _FORTIFY_SOURCE can't be used without optimizations.
|
||||
add_compile_options(-Wp,-U_FORTIFY_SOURCE)
|
||||
add_compile_options(-Wp,-D_FORTIFY_SOURCE=2)
|
||||
add_compile_options(-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1)
|
||||
endif()
|
||||
|
||||
if (CITRA_WARNINGS_AS_ERRORS)
|
||||
|
|
Loading…
Reference in a new issue