CMAKE_C_KNOWN_FEATURES¶
New in version 3.1.
List of C features known to this version of CMake.
The features listed in this global property may be known to be available to the
C compiler. If the feature is available with the C compiler, it will
be listed in the CMAKE_C_COMPILE_FEATURES variable.
The features listed here may be used with the target_compile_features()
command. See the cmake-compile-features(7) manual for information on
compile features and a list of supported compilers.
The features known to this version of CMake are listed below.
High level meta features indicating C standard support¶
New in version 3.8.
c_std_90Compiler mode is at least C 90.
c_std_99Compiler mode is at least C 99.
c_std_11Compiler mode is at least C 11.
c_std_17New in version 3.21.
Compiler mode is at least C 17.
c_std_23New in version 3.21.
Compiler mode is at least C 23.
Low level individual compile features¶
c_function_prototypesFunction prototypes, as defined in
ISO/IEC 9899:1990.c_restrictrestrictkeyword, as defined inISO/IEC 9899:1999.c_static_assertStatic assert, as defined in
ISO/IEC 9899:2011.c_variadic_macrosVariadic macros, as defined in
ISO/IEC 9899:1999.