diff options
author | Dave Rodgman <dave.rodgman@arm.com> | 2022-05-12 14:01:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-12 14:01:10 +0100 |
commit | d87e46f3de17901b7dce4948e4a4b5fd5f1a9ec2 (patch) | |
tree | 3f005168a7c92655be4c6baba35801362ce0b5ee /CMakeLists.txt | |
parent | 1cd4f6a873578ab4b267bbfab855108075f86f09 (diff) | |
parent | c9c6e8d1890f637ddd12211d1b5873094416dba4 (diff) | |
download | mbedtls-d87e46f3de17901b7dce4948e4a4b5fd5f1a9ec2.zip mbedtls-d87e46f3de17901b7dce4948e4a4b5fd5f1a9ec2.tar.gz mbedtls-d87e46f3de17901b7dce4948e4a4b5fd5f1a9ec2.tar.bz2 |
Merge pull request #3641 from okhowang/c99
Pass c99 to compiler
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7550f45..cac13bd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -170,6 +170,9 @@ string(REGEX MATCH "Clang" CMAKE_COMPILER_IS_CLANG "${CMAKE_C_COMPILER_ID}") include(CheckCCompilerFlag) +set(CMAKE_C_EXTENSIONS OFF) +set(CMAKE_C_STANDARD 99) + if(CMAKE_COMPILER_IS_GNU) # some warnings we want are not available with old GCC versions # note: starting with CMake 2.8 we could use CMAKE_C_COMPILER_VERSION |