The generators for Visual Studio 12 2013 and above set this variable to the command installed with the corresponding Visual Studio version. Note that this variable may be empty on Visual Studio Express editions because they do not provide this tool.

This variable is not defined by other generators even if is installed on the computer.

The CMAKE_VS_MSBUILD_COMMAND is also provided for Visual Studio 12 2013 and above. See also the CMAKE_MAKE_PROGRAM variable.