commit | df865c349a37328a6bdc516aef04defcc75841bb | [log] [tgz] |
---|---|---|
author | okhowang(王沛文) <okhowang@tencent.com> | Thu Sep 03 16:21:30 2020 +0800 |
committer | Dave Rodgman <dave.rodgman@arm.com> | Wed May 11 16:26:11 2022 +0000 |
tree | 51dd5e62214dd92428ab681db12e7ee1f995c521 | |
parent | 5479f5321aca0b08762074372e22f2c0033d939d [diff] [blame] |
Pass c99 to compiler in CMakeLists.txt Fixes #3631 Signed-off-by: okhowang(王沛文) <okhowang@tencent.com>
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0fccd3d..ec14024 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -170,6 +170,8 @@ include(CheckCCompilerFlag) +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