summaryrefslogtreecommitdiffstats
path: root/Source/cmVSSetupHelper.cxx
Commit message (Collapse)AuthorAgeFilesLines
* VS: Select and save a VS 2017 instance persistentlyBrad King2017-10-191-7/+0
| | | | | | | | | | Visual Studio 2017 supports multiple instances installed on a single machine. We use the Visual Studio Installer tool to enumerate instances and select one. Once we select an instance for a given build tree, save the result in `CMAKE_GENERATOR_INSTANCE` so we can re-configure the tree with the same instance on future re-runs of CMake. Fixes: #17268
* cmVSSetupHelper: Add option to specify an instanceBrad King2017-10-191-4/+25
|
* VS: Detect compiler component in VS 2017 instances more reliablyBrad King2017-10-161-17/+26
| | | | | | | | | | The `Microsoft.VisualStudio.Component.VC.Tools.x86.x64` component is not the only way a VS instance may provide the `cl` compiler tool. For example, VS 2017 Express Edition does not install that component. Instead search for the tools directly on disk within an instance. Suggested-by: Rich Chiodo <rchiodo@microsoft.com> Fixes: #17349
* cmVSSetupHelper: Fix install location encoding conversionBrad King2017-10-161-2/+3
|
* cmVSSetupHelper: Factor out install location string constructionBrad King2017-10-161-6/+10
| | | | This also adds a missing conversion to unix slashes in one code path.
* Meta: replace empty-string assignments with `clear()`.Pavel Solodovnikov2017-09-151-1/+1
|
* VS: Choose VS 2017 instance via environment variableBrad King2017-07-101-0/+28
| | | | | | | | | In the `Visual Studio 15 2017` generator, if the `VS150COMNTOOLS` environment variable points at a specific VS 2017 instance reported by the Visual Studio Installer tool, use that as the preferred instance. Inspired-by: Iyyappa Murugandi <iyyappam@microsoft.com> Fixes: #16846
* cmVSSetupHelper: Simplify use of EnumerateAndChooseVSInstanceBrad King2017-01-121-38/+7
| | | | | This method short-circuits when an instance has already been chosen, so avoid duplicating this check at call sites.
* VS: Fix detection of VS 2017 installation with WindowsStoreBrad King2017-01-121-0/+2
| | | | | | | Fix logic in cmVSSetupAPIHelper::IsVS2017Installed to work correctly on repeat calls. Closes: #16549
* VS: Add helper class to interact with Visual Studio InstallerIyyappa Murugandi2016-12-161-0/+395
VS 2017 exports a COM component which can be queried to find if VS 2017 is installed and also other components such as VC toolset and Windows SDKs. Add a helper class to interact with this interface.