diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-02-04 21:04:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-02-04 23:29:53 (GMT) |
commit | 9d767810e1e54eb9233854f0dbf1345a0b5be60f (patch) | |
tree | dace19f8ca996abbefb5cc30c1f401ac8cc27097 /Modules/Compiler/GNU-C.cmake | |
parent | 72537e4436a17535af5424628adef3b614a61679 (diff) | |
download | CMake-9d767810e1e54eb9233854f0dbf1345a0b5be60f.zip CMake-9d767810e1e54eb9233854f0dbf1345a0b5be60f.tar.gz CMake-9d767810e1e54eb9233854f0dbf1345a0b5be60f.tar.bz2 |
Features: Populate CMAKE_<LANG>_STANDARD_DEFAULT only for supported compilers.
If no compiler feature information is known for a given compiler
version, do not set a language standard default either. The two
settings must be recorded consistently.
Diffstat (limited to 'Modules/Compiler/GNU-C.cmake')
-rw-r--r-- | Modules/Compiler/GNU-C.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Compiler/GNU-C.cmake b/Modules/Compiler/GNU-C.cmake index fa97a94..89704e6 100644 --- a/Modules/Compiler/GNU-C.cmake +++ b/Modules/Compiler/GNU-C.cmake @@ -24,7 +24,7 @@ endif() if (NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 5.0) set(CMAKE_C_STANDARD_DEFAULT 11) -else() +elseif(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 4.4) set(CMAKE_C_STANDARD_DEFAULT 90) endif() |