CMAKE_VS_MSBUILD_COMMAND — CMake 3.27.6 Documentation

# CMAKE_VS_MSBUILD_COMMAND

The generators for `Visual Studio 11 2012` 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.