Feature request: For Visual Studio Toolset selection, enable selecting minor version
Currently when I am building a project I can specify the major version of the toolset by cmake -G "Visual Studio 15" -A x64 -T v141 ..
. However, Visual studio actually do minor releases for the MSVC toolsets as seen in https://blogs.msdn.microsoft.com/vcblog/2017/11/15/side-by-side-minor-version-msvc-toolsets-in-visual-studio-2017/.
Recently the release of VS2017 version 15.5 (toolset v141 minor version 14.12) breaks CUDA compatibility (Related #17541 (closed)). I filed a bug report and make a few posts on the forum and it seems that the fix won't roll out any time soon, and if I reinstall VS2017 from scratch there is no option to install version 15.4. As indicated in the previous link, there is actually an option to install (toolset v141 minor version 14.11) side by side, but they have to retarget it after the solution file is generated. However, cmake cannot generate the solution file at the first place if it's pointing to toolset v141 minor version 14.12, the error is something like No CMAKE_CUDA_COMPILER could be found.
Therefore, can we add a feature so that we can select the toolset with the minor version in cmake to workaround this problem? I imagine it will look something like
cmake -G "Visual Studio 15" -A x64 -T v141 -minor 14.11 ..