CMake: Require a C99 compiler

This commit is contained in:
Sebastian Pipping 2023-09-21 17:24:43 +02:00
parent 8192058e2a
commit 2a24068ec8

View file

@ -42,6 +42,9 @@ project(expat
LANGUAGES
C
)
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_C_EXTENSIONS OFF) # i.e. -std=c99 rather than default -std=gnu99
set(PACKAGE_BUGREPORT "expat-bugs@libexpat.org")
set(PACKAGE_NAME "expat")