CMAKE_VS_MSBUILD_COMMAND
From Get docs
Cmake/docs/3.21/variable/cmake vs msbuild command
CMAKE_VS_MSBUILD_COMMAND
The generators for Visual Studio 10 2010 and above set this variable to the MSBuild.exe
command installed with the corresponding Visual Studio version.
This variable is not defined by other generators even if MSBuild.exe
is installed on the computer.
The CMAKE_VS_DEVENV_COMMAND is also provided for the non-Express editions of Visual Studio. See also the CMAKE_MAKE_PROGRAM variable.
© 2000–2021 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.21/variable/CMAKE_VS_MSBUILD_COMMAND.html