CMake does not find Visual Studio 2017 Build Tools
VS 2017 Build Tools is a package that contains VS command line tools without an IDE. See [1] and [2].
CMake recently added code to find VS 2017 installations in Source/cmVSSetupHelper.cxx
. It works for desktop editions of Visual Studio 2017, but does not seem to find VS 2017 Build Tools installations. However, VS 2017 Build Tools should be available using the same API under the product name Microsoft.VisualStudio.Product.BuildTools
[4]. Component names such as Microsoft.VisualStudio.Component.VC.Tools.x86.x64
should not differ from desktop editions.
Tested CMake version: 3.7.2
References:
- https://www.visualstudio.com/downloads/ -> Other Tools and Frameworks
- https://blogs.msdn.microsoft.com/vcblog/2016/11/16/introducing-the-visual-studio-build-tools/
- https://blogs.msdn.microsoft.com/vcblog/2017/03/06/finding-the-visual-c-compiler-tools-in-visual-studio-2017/
- https://github.com/Microsoft/vssetup.powershell/wiki/Selecting-an-Instance#selecting-other-products