aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-06-05 22:02:51 -0700
committerGitHub <noreply@github.com>2017-06-05 22:02:51 -0700
commit4c33195759bfc2b3bde8628a6617f46040721330 (patch)
treed65e6fa538d5efe022a5886a16adc8c5984a9b94 /toolsrc/include
parent77e556a18622fdce4d9ea6c8230c11c5cf9ce3f6 (diff)
parent60825eed0e8b8c7646d0e66bc2743b4a1e8e4a96 (diff)
downloadvcpkg-4c33195759bfc2b3bde8628a6617f46040721330.tar.gz
vcpkg-4c33195759bfc2b3bde8628a6617f46040721330.zip
Merge pull request #1213 from albertziegenhagel/request-toolset-version
Specify toolset version
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/VcpkgPaths.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/toolsrc/include/VcpkgPaths.h b/toolsrc/include/VcpkgPaths.h
index 25c1728b9..95cd4bc28 100644
--- a/toolsrc/include/VcpkgPaths.h
+++ b/toolsrc/include/VcpkgPaths.h
@@ -48,7 +48,12 @@ namespace vcpkg
const fs::path& get_cmake_exe() const;
const fs::path& get_git_exe() const;
const fs::path& get_nuget_exe() const;
- const Toolset& get_toolset() const;
+
+ /// <summary>Retrieve a toolset matching a VS version</summary>
+ /// <remarks>
+ /// Valid version strings are "v140", "v141", and "". Empty string gets the latest.
+ /// </remarks>
+ const Toolset& get_toolset(const std::string& toolset_version) const;
Files::Filesystem& get_filesystem() const;
@@ -56,6 +61,6 @@ namespace vcpkg
Lazy<fs::path> cmake_exe;
Lazy<fs::path> git_exe;
Lazy<fs::path> nuget_exe;
- Lazy<Toolset> toolset;
+ Lazy<std::vector<Toolset>> toolsets;
};
}