Merge pull request #751 from libexpat/cmake-c99

CMake: Require a C99 compiler
This commit is contained in:
Sebastian Pipping 2023-09-21 21:45:34 +02:00 committed by GitHub
commit bb6ec6ad0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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")