summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-08-03 13:20:25 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-08-03 13:20:25 (GMT)
commit16e449cc7221cbf77a2bac02a91d986703fe6483 (patch)
treef531a24e00aae1b4ec1c4a737fcf43a2f8d648cb /Modules/Compiler
parenta382c3013c7b98a95c6d4ceb833721093a5c9ff3 (diff)
parent088f14eb725650158d256c28e86e44da3989ad9c (diff)
downloadCMake-16e449cc7221cbf77a2bac02a91d986703fe6483.zip
CMake-16e449cc7221cbf77a2bac02a91d986703fe6483.tar.gz
CMake-16e449cc7221cbf77a2bac02a91d986703fe6483.tar.bz2
Merge topic 'intel-gnu11-support'
088f14eb Intel-C: standard flags are also supported in 12.0 27a3ca15 Intel-C: support gnu89 and gnu99 extension flags cc223e1e Intel-C: declare support for gnu11
Diffstat (limited to 'Modules/Compiler')
-rw-r--r--Modules/Compiler/Intel-C.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/Compiler/Intel-C.cmake b/Modules/Compiler/Intel-C.cmake
index cf366da..1d09bd5 100644
--- a/Modules/Compiler/Intel-C.cmake
+++ b/Modules/Compiler/Intel-C.cmake
@@ -15,14 +15,14 @@ endif()
if (NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 15.0.0)
set(CMAKE_C11_STANDARD_COMPILE_OPTION "${_std}=c11")
- set(CMAKE_C11_EXTENSION_COMPILE_OPTION "${_std}=c11")
+ set(CMAKE_C11_EXTENSION_COMPILE_OPTION "${_std}=gnu11")
endif()
-if (NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 12.1)
+if (NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 12.0)
set(CMAKE_C90_STANDARD_COMPILE_OPTION "${_std}=c89")
- set(CMAKE_C90_EXTENSION_COMPILE_OPTION "${_std}=c89")
+ set(CMAKE_C90_EXTENSION_COMPILE_OPTION "${_std}=gnu89")
set(CMAKE_C99_STANDARD_COMPILE_OPTION "${_std}=c99")
- set(CMAKE_C99_EXTENSION_COMPILE_OPTION "${_std}=c99")
+ set(CMAKE_C99_EXTENSION_COMPILE_OPTION "${_std}=gnu99")
endif()
if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 12.1)