Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
Undefine FORTIFY_SOURCE before defining again
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloMK7 committed Aug 20, 2024
1 parent f8d133c commit b2700b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ else()

if (NOT CMAKE_BUILD_TYPE STREQUAL Debug)
# _FORTIFY_SOURCE can't be used without optimizations.
add_compile_options(-Wp,-D_FORTIFY_SOURCE=2)
add_compile_options(-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2)
endif()

if (CITRA_WARNINGS_AS_ERRORS)
Expand Down

0 comments on commit b2700b1

Please sign in to comment.