diff options
author | Brad King <brad.king@kitware.com> | 2018-03-26 15:55:15 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-03-27 11:40:54 (GMT) |
commit | 7fe580a36253281784dda9c35798693350e24859 (patch) | |
tree | ed860d357022a6c8db6f1daead9e27e7970ec1b9 /Modules/Compiler/CMakeCommonCompilerMacros.cmake | |
parent | 1b328e09a33e61293635c7ddb9bcff986ae8d1e7 (diff) | |
download | CMake-7fe580a36253281784dda9c35798693350e24859.zip CMake-7fe580a36253281784dda9c35798693350e24859.tar.gz CMake-7fe580a36253281784dda9c35798693350e24859.tar.bz2 |
Features: Add infrastructure for C++ 20 language standard
Issue: #17849
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 684fd30..ad464c7 100644 --- a/Modules/Compiler/CMakeCommonCompilerMacros.cmake +++ b/Modules/Compiler/CMakeCommonCompilerMacros.cmake @@ -78,6 +78,9 @@ endmacro() # Define to allow compile features to be automatically determined macro(cmake_record_cxx_compile_features) set(_result 0) + if(_result EQUAL 0 AND DEFINED CMAKE_CXX20_STANDARD_COMPILE_OPTION) + _record_compiler_features_cxx(20) + endif() if(_result EQUAL 0 AND DEFINED CMAKE_CXX17_STANDARD_COMPILE_OPTION) _record_compiler_features_cxx(17) endif() |