aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/vcpkg.cpp
diff options
context:
space:
mode:
authormyd7349 <myd7349@gmail.com>2019-07-02 18:13:44 +0800
committermyd7349 <myd7349@gmail.com>2019-07-02 18:13:44 +0800
commit086c72777369e9a8db0a58e4ad43360b3b613c78 (patch)
tree240047d021f2e08af14d58b8a6a5db4b6f0fda60 /toolsrc/src/vcpkg.cpp
parent3efdcef0e62aa6df7ff9088c001cff8d47304386 (diff)
parentf15d52becf620a0b234b4b7735579b5415f8d7b7 (diff)
downloadvcpkg-086c72777369e9a8db0a58e4ad43360b3b613c78.tar.gz
vcpkg-086c72777369e9a8db0a58e4ad43360b3b613c78.zip
Merge branch 'master' into rdkafka-init
Diffstat (limited to 'toolsrc/src/vcpkg.cpp')
-rw-r--r--toolsrc/src/vcpkg.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/toolsrc/src/vcpkg.cpp b/toolsrc/src/vcpkg.cpp
index e02bdc71f..363b39814 100644
--- a/toolsrc/src/vcpkg.cpp
+++ b/toolsrc/src/vcpkg.cpp
@@ -116,9 +116,21 @@ static void inner(const VcpkgCmdArguments& args)
Debug::print("Using vcpkg-root: ", vcpkg_root_dir.u8string(), '\n');
+ Optional<fs::path> vcpkg_scripts_root_dir = nullopt;
+ if (nullptr != args.scripts_root_dir)
+ {
+ vcpkg_scripts_root_dir = fs::stdfs::canonical(fs::u8path(*args.scripts_root_dir));
+ Debug::print("Using scripts-root: ", vcpkg_scripts_root_dir.value_or_exit(VCPKG_LINE_INFO).u8string(), '\n');
+ }
+
auto default_vs_path = System::get_environment_variable("VCPKG_VISUAL_STUDIO_PATH").value_or("");
- const Expected<VcpkgPaths> expected_paths = VcpkgPaths::create(vcpkg_root_dir, default_vs_path);
+
+
+ const Expected<VcpkgPaths> expected_paths = VcpkgPaths::create(vcpkg_root_dir,
+ vcpkg_scripts_root_dir,
+ default_vs_path,
+ args.overlay_triplets.get());
Checks::check_exit(VCPKG_LINE_INFO,
!expected_paths.error(),
"Error: Invalid vcpkg root directory %s: %s",