Intel-C: standard flags are also supported in 12.0

This commit is contained in:
Ben Boeckel 2016-08-02 13:10:56 -04:00
parent 27a3ca15e5
commit 088f14eb72
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ if (NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 15.0.0)
set(CMAKE_C11_EXTENSION_COMPILE_OPTION "${_std}=gnu11") set(CMAKE_C11_EXTENSION_COMPILE_OPTION "${_std}=gnu11")
endif() 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_STANDARD_COMPILE_OPTION "${_std}=c89")
set(CMAKE_C90_EXTENSION_COMPILE_OPTION "${_std}=gnu89") set(CMAKE_C90_EXTENSION_COMPILE_OPTION "${_std}=gnu89")
set(CMAKE_C99_STANDARD_COMPILE_OPTION "${_std}=c99") set(CMAKE_C99_STANDARD_COMPILE_OPTION "${_std}=c99")