diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d3c2037a9..92ec8d66f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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)