diff options
author | Raul Tambre <raul@tambre.ee> | 2021-02-06 16:59:23 (GMT) |
---|---|---|
committer | Raul Tambre <raul@tambre.ee> | 2021-02-25 16:22:10 (GMT) |
commit | dcd599757f215fa8eba3b5e40d4b1c52eb5b3919 (patch) | |
tree | 0ac036cb48e1916e08ebd5d50a9828732c056da9 /Modules/Compiler | |
parent | 93b7d3d29221f98388c7fa20568cd0b769a26774 (diff) | |
download | CMake-dcd599757f215fa8eba3b5e40d4b1c52eb5b3919.zip CMake-dcd599757f215fa8eba3b5e40d4b1c52eb5b3919.tar.gz CMake-dcd599757f215fa8eba3b5e40d4b1c52eb5b3919.tar.bz2 |
C23 support
Diffstat (limited to 'Modules/Compiler')
-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 ac20d5f..29e6730 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() |