summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/MSVC-CXX.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-10-07 15:37:59 (GMT)
committerBrad King <brad.king@kitware.com>2021-10-07 15:46:09 (GMT)
commitef47e18ad0fab68f67b95c777c1bee96fe7a4785 (patch)
tree4c67f430b0e91b303812634f1f0db9896dd7bfaa /Modules/Compiler/MSVC-CXX.cmake
parent0d3bfda22ad3327a7921caa464741394d58f3d34 (diff)
downloadCMake-ef47e18ad0fab68f67b95c777c1bee96fe7a4785.zip
CMake-ef47e18ad0fab68f67b95c777c1bee96fe7a4785.tar.gz
CMake-ef47e18ad0fab68f67b95c777c1bee96fe7a4785.tar.bz2
MSVC: Tolerate cxx_std_23 feature on older compiler versions
In commit 3aaf1d91bf (MSVC: C++20 final flag, C++23 support, 2021-05-29, v3.20.4~7^2~1) we forgot to add `cxx_std_23` to the fallback table for MSVC versions from VS 2010 through VS 2015. This allows project to at least attempt compilation with these compilers since they do not have any modes. Issue: #22729
Diffstat (limited to 'Modules/Compiler/MSVC-CXX.cmake')
-rw-r--r--Modules/Compiler/MSVC-CXX.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Compiler/MSVC-CXX.cmake b/Modules/Compiler/MSVC-CXX.cmake
index f1c7450..5df5c1e 100644
--- a/Modules/Compiler/MSVC-CXX.cmake
+++ b/Modules/Compiler/MSVC-CXX.cmake
@@ -70,6 +70,7 @@ elseif (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 16.0)
cxx_std_14
cxx_std_17
cxx_std_20
+ cxx_std_23
)
_record_compiler_features(CXX "" CMAKE_CXX_COMPILE_FEATURES)
endmacro()