summaryrefslogtreecommitdiff
path: root/Modules/Compiler/CMakeCommonCompilerMacros.cmake
diff options
context:
space:
mode:
authorRaul Tambre <raul@tambre.ee>2021-02-06 18:59:23 +0200
committerRaul Tambre <raul@tambre.ee>2021-02-25 18:22:10 +0200
commitdcd599757f215fa8eba3b5e40d4b1c52eb5b3919 (patch)
tree0ac036cb48e1916e08ebd5d50a9828732c056da9 /Modules/Compiler/CMakeCommonCompilerMacros.cmake
parent93b7d3d29221f98388c7fa20568cd0b769a26774 (diff)
downloadcmake-dcd599757f215fa8eba3b5e40d4b1c52eb5b3919.tar.gz
C23 support
Diffstat (limited to 'Modules/Compiler/CMakeCommonCompilerMacros.cmake')
-rw-r--r--Modules/Compiler/CMakeCommonCompilerMacros.cmake3
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()