ansilove

ANSI and ASCII art to PNG converter in C
Log | Files | Refs | README | LICENSE

commit 6ca3fdbc456045bc868974a18aefdee6d3cdef23
parent 45734247b8ea5fcfd6e6677c9ec83221b9abb5c7
Author: Frederic Cambus <fred@statdns.com>
Date:   Fri, 23 Oct 2020 15:49:51 +0200

Only enable FORTIFY_SOURCE level 2 for release builds.

Diffstat:
MCMakeLists.txt | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -44,7 +44,8 @@ if(NOT HAVE_STRTONUM) set (SRC ${SRC} compat/strtonum.c) endif() -add_definitions(-D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -Wall -Wextra -std=c99 -pedantic) +set(CMAKE_C_FLAGS_RELEASE "-D_FORTIFY_SOURCE=2") +add_definitions(-D_GNU_SOURCE -Wall -Wextra -std=c99 -pedantic) add_executable(ansilove ${SRC}) target_link_libraries(ansilove ${ANSILOVE_LIBRARIES} m)