CMAKE_C_KNOWN_FEATURES.rst 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. CMAKE_C_KNOWN_FEATURES
  2. ----------------------
  3. .. versionadded:: 3.1
  4. List of C features known to this version of CMake.
  5. The features listed in this global property may be known to be available to the
  6. C compiler. If the feature is available with the C compiler, it will
  7. be listed in the :variable:`CMAKE_C_COMPILE_FEATURES` variable.
  8. The features listed here may be used with the :command:`target_compile_features`
  9. command. See the :manual:`cmake-compile-features(7)` manual for information on
  10. compile features and a list of supported compilers.
  11. The features known to this version of CMake are:
  12. ``c_std_90``
  13. Compiler mode is at least C 90.
  14. ``c_std_99``
  15. Compiler mode is at least C 99.
  16. ``c_std_11``
  17. Compiler mode is at least C 11.
  18. ``c_std_17``
  19. Compiler mode is at least C 17.
  20. ``c_std_23``
  21. Compiler mode is at least C 23.
  22. ``c_function_prototypes``
  23. Function prototypes, as defined in ``ISO/IEC 9899:1990``.
  24. ``c_restrict``
  25. ``restrict`` keyword, as defined in ``ISO/IEC 9899:1999``.
  26. ``c_static_assert``
  27. Static assert, as defined in ``ISO/IEC 9899:2011``.
  28. ``c_variadic_macros``
  29. Variadic macros, as defined in ``ISO/IEC 9899:1999``.