2014-11-12 22:20:36 +00:00
|
|
|
include(Compiler/Clang)
|
|
|
|
__compiler_clang(C)
|
2014-11-12 21:48:17 +00:00
|
|
|
|
2015-01-11 15:38:10 +00:00
|
|
|
if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 4.0)
|
2014-11-12 21:48:17 +00:00
|
|
|
set(CMAKE_C90_STANDARD_COMPILE_OPTION "-std=c90")
|
|
|
|
set(CMAKE_C90_EXTENSION_COMPILE_OPTION "-std=gnu90")
|
2019-03-25 19:07:07 +00:00
|
|
|
set(CMAKE_C90_STANDARD__HAS_FULL_SUPPORT ON)
|
2014-11-12 21:48:17 +00:00
|
|
|
|
|
|
|
set(CMAKE_C99_STANDARD_COMPILE_OPTION "-std=c99")
|
|
|
|
set(CMAKE_C99_EXTENSION_COMPILE_OPTION "-std=gnu99")
|
2019-03-25 19:07:07 +00:00
|
|
|
set(CMAKE_C99_STANDARD__HAS_FULL_SUPPORT ON)
|
2014-11-12 21:48:17 +00:00
|
|
|
|
|
|
|
set(CMAKE_C11_STANDARD_COMPILE_OPTION "-std=c11")
|
|
|
|
set(CMAKE_C11_EXTENSION_COMPILE_OPTION "-std=gnu11")
|
2019-03-25 19:07:07 +00:00
|
|
|
set(CMAKE_C11_STANDARD__HAS_FULL_SUPPORT ON)
|
2014-11-12 21:48:17 +00:00
|
|
|
endif()
|
|
|
|
|
2017-05-01 17:21:31 +00:00
|
|
|
__compiler_check_default_language_standard(C 4.0 99)
|