aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/commands_integrate.cpp
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-03-28 15:05:55 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-03-28 18:59:57 -0700
commit42bd55e3ae815e43181facfdc161d29804014f26 (patch)
treed0e4db89947aa557ec6e3bf6065cfb43cbc796ff /toolsrc/src/commands_integrate.cpp
parent67ce764c2ea7483860a3ad61441608d8978605ae (diff)
downloadvcpkg-42bd55e3ae815e43181facfdc161d29804014f26.tar.gz
vcpkg-42bd55e3ae815e43181facfdc161d29804014f26.zip
Rework optional<T>
Diffstat (limited to 'toolsrc/src/commands_integrate.cpp')
-rw-r--r--toolsrc/src/commands_integrate.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/toolsrc/src/commands_integrate.cpp b/toolsrc/src/commands_integrate.cpp
index b72a7a483..9342fc71e 100644
--- a/toolsrc/src/commands_integrate.cpp
+++ b/toolsrc/src/commands_integrate.cpp
@@ -136,7 +136,8 @@ namespace vcpkg::Commands::Integrate
static fs::path get_appdata_targets_path()
{
- return fs::path(*System::get_environmental_variable(L"LOCALAPPDATA")) / "vcpkg" / "vcpkg.user.targets";
+ static const fs::path local_app_data = fs::path(System::get_environmental_variable(L"LOCALAPPDATA").get_or_exit(VCPKG_LINE_INFO));
+ return local_app_data / "vcpkg" / "vcpkg.user.targets";
}
static void integrate_install(const vcpkg_paths& paths)