From a0762d49b248f448da736269cf70cedf8011241c Mon Sep 17 00:00:00 2001 From: Arha Gatram Date: Wed, 10 Jun 2026 15:41:34 +0000 Subject: [PATCH] NVCC: Fix minimum MSVC version needed for cuda_std_20 Fix the version check from commit 0aeeb8160c (CUDA: Add support for cuda_std_20 for nvcc 12.0+, 2022-12-09, v3.25.2~21^2). Align the minimum version of MSVC for supporting C++20 through `nvcc` with the version present in `MSVC-CXX.cmake` . --- Modules/Compiler/NVIDIA.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Compiler/NVIDIA.cmake b/Modules/Compiler/NVIDIA.cmake index 0d0f03ad00..cdb2b0aa20 100644 --- a/Modules/Compiler/NVIDIA.cmake +++ b/Modules/Compiler/NVIDIA.cmake @@ -40,7 +40,7 @@ macro(__compiler_nvidia_cxx_standards lang) endif() if (NOT CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 12.0) - if(CMAKE_${lang}_SIMULATE_VERSION VERSION_GREATER_EQUAL 19.11.25505) + if(CMAKE_${lang}_SIMULATE_VERSION VERSION_GREATER_EQUAL 19.12.25835) set(CMAKE_${lang}20_STANDARD_COMPILE_OPTION "-std=c++20") set(CMAKE_${lang}20_EXTENSION_COMPILE_OPTION "-std=c++20") set(CMAKE_${lang}_STANDARD_LATEST 20)