[CONFIGURE] Add support for MSVC Toolset 19.4x (#6677)
authorGleb Surikov <glebs.surikovs@gmail.com>
Wed, 27 Mar 2024 18:04:18 +0000 (20:04 +0200)
committerGitHub <noreply@github.com>
Wed, 27 Mar 2024 18:04:18 +0000 (21:04 +0300)
The MSVC toolset will increment its minor version number from 19.39 (VS 2022 v17.9) to 19.40 (VS 2022 v17.10). The MSVC toolset will be version 19.40.33521.0 in the preview 1 release. For more details, see the MSVC Toolset Minor Version Number 14.40 in VS 2022 v17.10 blog post: https://aka.ms/msvc-ver14.40

configure.cmd

index 32f776a..d94501a 100755 (executable)
@@ -55,6 +55,7 @@ if defined ROS_ARCH (
     cl 2>&1 | findstr /R /c:"19\.1.\." > NUL && set VS_VERSION=15
     cl 2>&1 | findstr /R /c:"19\.2.\." > NUL && set VS_VERSION=16
     cl 2>&1 | findstr /R /c:"19\.3.\." > NUL && set VS_VERSION=17
+    cl 2>&1 | findstr /R /c:"19\.4.\." > NUL && set VS_VERSION=17
     if not defined VS_VERSION (
         echo Error: Visual Studio version too old ^(before 14 ^(2015^)^) or version detection failed.
         goto quit