diff options
author | Raul Tambre <raul@tambre.ee> | 2021-02-06 18:59:23 +0200 |
---|---|---|
committer | Raul Tambre <raul@tambre.ee> | 2021-02-25 18:22:10 +0200 |
commit | dcd599757f215fa8eba3b5e40d4b1c52eb5b3919 (patch) | |
tree | 0ac036cb48e1916e08ebd5d50a9828732c056da9 /Modules/Compiler/CMakeCommonCompilerMacros.cmake | |
parent | 93b7d3d29221f98388c7fa20568cd0b769a26774 (diff) | |
download | cmake-dcd599757f215fa8eba3b5e40d4b1c52eb5b3919.tar.gz |
C23 support
Diffstat (limited to 'Modules/Compiler/CMakeCommonCompilerMacros.cmake')
-rw-r--r-- | Modules/Compiler/CMakeCommonCompilerMacros.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/Compiler/CMakeCommonCompilerMacros.cmake b/Modules/Compiler/CMakeCommonCompilerMacros.cmake index ac20d5f6eb..29e673004c 100644 --- a/Modules/Compiler/CMakeCommonCompilerMacros.cmake +++ b/Modules/Compiler/CMakeCommonCompilerMacros.cmake @@ -64,6 +64,9 @@ endmacro() # Define to allow compile features to be automatically determined macro(cmake_record_c_compile_features) set(_result 0) + if(_result EQUAL 0 AND DEFINED CMAKE_C23_STANDARD_COMPILE_OPTION) + _has_compiler_features_c(23) + endif() if(_result EQUAL 0 AND DEFINED CMAKE_C17_STANDARD_COMPILE_OPTION) _has_compiler_features_c(17) endif() |