diff options
author | Allen Winter <allen.winter@kdab.com> | 2022-11-13 12:34:28 -0500 |
---|---|---|
committer | Allen Winter <allen.winter@kdab.com> | 2022-11-13 12:35:07 -0500 |
commit | c47a06577536dcda84497bc8177c1491c514e462 (patch) | |
tree | 01898efa7478564c3d622c91a2fb4296f7e86d3d | |
parent | 7d701ff5ba1425895ac138be6ec0a177ec26c1ce (diff) | |
download | libical-git-c47a06577536dcda84497bc8177c1491c514e462.tar.gz |
CMakeLists.txt - require stdc99 and C++11
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index cc271724..b5c411f4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -541,6 +541,8 @@ endif() if("${CMAKE_C_COMPILER_ID}" MATCHES "Clang") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Qunused-arguments") endif() +set(CMAKE_C_STANDARD 99) +set(CMAKE_C_STANDARD_REQUIRED ON) if(CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") include(CheckCXXCompilerFlag) @@ -584,6 +586,8 @@ endif() if("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Qunused-arguments") endif() +set(CMAKE_CXX_STANDARD 11) +set(CMAKE_CXX_STANDARD_REQUIRED ON) ################ Developer Options ##################### option(ABI_DUMPER "(Developer-only) Build for abi-dumper." False) |