bdf2sfd

BDF to SFD converter, allowing to vectorize bitmap fonts
Log | Files | Refs | README | LICENSE

commit 8829c11bfe5a0d6e6ad885ff61200a661c34f3eb
parent 6c1dccc4070015cb5c8186d2425b458d7b8c7e90
Author: Frederic Cambus <fred@statdns.com>
Date:   Mon, 18 Oct 2021 21:50:36 +0200

Use CMAKE_C_STANDARD instead of hardcoding compiler flags.

Diffstat:
MCMakeLists.txt | 10+++++++---
1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -4,7 +4,7 @@ # https://github.com/fcambus/bdf2sfd # # Created: 2019-11-21 -# Last Updated: 2021-04-04 +# Last Updated: 2021-10-18 # # bdf2sfd is released under the BSD 2-Clause license. # See LICENSE file for details. @@ -12,7 +12,11 @@ # SPDX-License-Identifier: BSD-2-Clause # -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(bdf2sfd C) @@ -52,7 +56,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(bdf2sfd ${SRC}) install(TARGETS bdf2sfd DESTINATION ${CMAKE_INSTALL_BINDIR})