mumble-voip / mumble-releng

Mumble Release Engineering
Other
17 stars 21 forks source link

Auto-detect Visual Studio installation (most recent first) #83

Closed Kissaki closed 5 years ago

Kissaki commented 5 years ago

Having to set the VS version manually is not documented in the README. Having specified an invalid version (not installed VS) fails quite late, when trying to build boost - there is no check we do when actually preparing the environment, and calling vscvars. As a result, the behavior and configuration is quite unexpected.

Instead of specifying the VS version manually, in the prep.cmd file, the script now checks for the existence of the vscvars script files from most recent supported VS version first, and uses the first it finds.