diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2019-03-25 19:07:07 (GMT) |
---|---|---|
committer | Robert Maynard <robert.maynard@kitware.com> | 2019-03-27 19:45:11 (GMT) |
commit | 983533a4b8cc3abbeaf11c1cadad4e14dccc5824 (patch) | |
tree | 4602652395eee15ab0e9cdee8d7f5f4802ca3dcb /Modules/Compiler/GNU-C.cmake | |
parent | f92ccbc306c20554af35709faf00f402a6c34978 (diff) | |
download | CMake-983533a4b8cc3abbeaf11c1cadad4e14dccc5824.zip CMake-983533a4b8cc3abbeaf11c1cadad4e14dccc5824.tar.gz CMake-983533a4b8cc3abbeaf11c1cadad4e14dccc5824.tar.bz2 |
Record when C compilers have gained full support for 90,99,11
Diffstat (limited to 'Modules/Compiler/GNU-C.cmake')
-rw-r--r-- | Modules/Compiler/GNU-C.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/Compiler/GNU-C.cmake b/Modules/Compiler/GNU-C.cmake index f072c54..ca286b3 100644 --- a/Modules/Compiler/GNU-C.cmake +++ b/Modules/Compiler/GNU-C.cmake @@ -10,13 +10,16 @@ elseif (NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 3.4) endif() if (NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 3.4) + set(CMAKE_C90_STANDARD__HAS_FULL_SUPPORT ON) set(CMAKE_C99_STANDARD_COMPILE_OPTION "-std=c99") set(CMAKE_C99_EXTENSION_COMPILE_OPTION "-std=gnu99") + set(CMAKE_C99_STANDARD__HAS_FULL_SUPPORT ON) endif() if (NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 4.7) set(CMAKE_C11_STANDARD_COMPILE_OPTION "-std=c11") set(CMAKE_C11_EXTENSION_COMPILE_OPTION "-std=gnu11") + set(CMAKE_C11_STANDARD__HAS_FULL_SUPPORT ON) elseif (NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 4.6) set(CMAKE_C11_STANDARD_COMPILE_OPTION "-std=c1x") set(CMAKE_C11_EXTENSION_COMPILE_OPTION "-std=gnu1x") |