diff options
author | Allen Winter <allen.winter@kdab.com> | 2022-01-22 12:02:30 -0500 |
---|---|---|
committer | Allen Winter <allen.winter@kdab.com> | 2022-01-22 12:02:30 -0500 |
commit | 71d09589f291bc9b95974a4d4db4087121ed4bc9 (patch) | |
tree | 6dc37e780bc73dfa588d8e4a0226bf3242d3e153 | |
parent | d30f2ba33befd89e4ead4be6552ebf79efd2a490 (diff) | |
download | libical-git-71d09589f291bc9b95974a4d4db4087121ed4bc9.tar.gz |
make it more explicit that C99 compliance is necessary
-rw-r--r-- | CMakeLists.txt | 4 | ||||
-rw-r--r-- | Install.txt | 2 | ||||
-rwxr-xr-x | scripts/buildtests.sh | 1 |
3 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5b087a86..2d43e6fb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -281,6 +281,10 @@ if(BerkeleyDB_FOUND) set(BDB_LIBRARY ${BerkeleyDB_LIBRARIES}) endif() +# C99 compliant compiler is required +set(CMAKE_C_STANDARD 99) +set(CMAKE_C_STANDARD_REQUIRED ON) + # MSVC specific definitions if(WIN32) if(MSVC) diff --git a/Install.txt b/Install.txt index 3117d350..779c6b86 100644 --- a/Install.txt +++ b/Install.txt @@ -13,7 +13,7 @@ To build libical you will need: - CMake version 3.11.0 or higher - Perl - libicu (not required but strongly recommended) - - a C compiler (let us know if the build fails with your C compiler) + - a C99-compliant C compiler (let us know if the build fails with your C compiler) Building on Unix with gcc or clang: % mkdir build diff --git a/scripts/buildtests.sh b/scripts/buildtests.sh index d682f367..5b062505 100755 --- a/scripts/buildtests.sh +++ b/scripts/buildtests.sh @@ -373,6 +373,7 @@ SPLINT() { splint $files \ -badflag \ + -preproc \ -weak -warnposix \ -modobserver -initallelements -redef \ -linelen 1000 \ |