ansilove

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

commit c28e6a612fa731f291f26f9abe6c36fd4654138d
parent 5a4a16f2d6af3a9f5c00fe6990c24b07f0ef8a83
Author: Frederic Cambus <fred@statdns.com>
Date:   Mon, 18 Oct 2021 21:53:34 +0200

Use CMAKE_C_STANDARD instead of hardcoding compiler flags.

Diffstat:
MCMakeLists.txt | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -1,4 +1,8 @@ -cmake_minimum_required(VERSION 2.8.12) +cmake_minimum_required(VERSION 3.1) + +set(CMAKE_C_STANDARD 99) +set(CMAKE_C_STANDARD_REQUIRED ON) +set(CMAKE_C_EXTENSIONS OFF) project(ansilove C) @@ -43,7 +47,7 @@ if(NOT HAVE_STRTONUM) set(SRC ${SRC} compat/strtonum.c) endif() -add_definitions(-D_GNU_SOURCE -Wall -Wextra -std=c99 -pedantic) +add_definitions(-D_GNU_SOURCE -Wall -Wextra -pedantic) add_executable(ansilove ${SRC}) target_link_libraries(ansilove ${ANSILOVE_LIBRARIES} m)