summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-10-02 11:47:16 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-10-02 11:47:25 (GMT)
commit20e9151e6cf47299bb99d85446beb5dc656dba7e (patch)
treea7e602a03aebc935cab447d0f8d54b3ed5ed53b9 /Source
parentc5bec56611d6f7534670676a81cfc9d9b920afc4 (diff)
parent5117389931e1c845d81a9b50382d42e0cfb46bdc (diff)
downloadCMake-20e9151e6cf47299bb99d85446beb5dc656dba7e.zip
CMake-20e9151e6cf47299bb99d85446beb5dc656dba7e.tar.gz
CMake-20e9151e6cf47299bb99d85446beb5dc656dba7e.tar.bz2
Merge topic 'vs-v142-version'
5117389931 VS: Fix support for v142 toolset minor versions Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3874
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlobalVisualStudioVersionedGenerator.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmGlobalVisualStudioVersionedGenerator.cxx b/Source/cmGlobalVisualStudioVersionedGenerator.cxx
index 2ba1aff..1eca1f6 100644
--- a/Source/cmGlobalVisualStudioVersionedGenerator.cxx
+++ b/Source/cmGlobalVisualStudioVersionedGenerator.cxx
@@ -390,7 +390,9 @@ std::string cmGlobalVisualStudioVersionedGenerator::GetAuxiliaryToolset() const
GetVSInstance(instancePath);
std::stringstream path;
path << instancePath;
- path << "/VC/Auxiliary/Build/";
+ path << "/VC/Auxiliary/Build";
+ path << (cmSystemTools::VersionCompareGreaterEq(version, "14.20") ? '.'
+ : '/');
path << version;
path << "/Microsoft.VCToolsVersion." << version << ".props";