diff options
author | Brad King <brad.king@kitware.com> | 2017-09-26 15:51:29 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-10-16 15:55:53 (GMT) |
commit | c6bb704ea1e2a2c91605e390900d69bd51269fc9 (patch) | |
tree | 3998ad8de73c1d008a0707cc4bafae226c03be8e /Source/cmVSSetupHelper.cxx | |
parent | 4c3116d7545fa357adad13d8e6a5571770377cdc (diff) | |
download | CMake-c6bb704ea1e2a2c91605e390900d69bd51269fc9.zip CMake-c6bb704ea1e2a2c91605e390900d69bd51269fc9.tar.gz CMake-c6bb704ea1e2a2c91605e390900d69bd51269fc9.tar.bz2 |
cmVSSetupHelper: Fix install location encoding conversion
Diffstat (limited to 'Source/cmVSSetupHelper.cxx')
-rw-r--r-- | Source/cmVSSetupHelper.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmVSSetupHelper.cxx b/Source/cmVSSetupHelper.cxx index d36e350..c414903 100644 --- a/Source/cmVSSetupHelper.cxx +++ b/Source/cmVSSetupHelper.cxx @@ -1,7 +1,9 @@ /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying file Copyright.txt or https://cmake.org/licensing for details. */ #include "cmVSSetupHelper.h" + #include "cmSystemTools.h" +#include "cmsys/Encoding.hxx" #ifndef VSSetupConstants #define VSSetupConstants @@ -51,8 +53,7 @@ const WCHAR* ComponentType = L"Component"; std::string VSInstanceInfo::GetInstallLocation() const { - std::string loc(this->VSInstallLocation.begin(), - this->VSInstallLocation.end()); + std::string loc = cmsys::Encoding::ToNarrow(this->VSInstallLocation); cmSystemTools::ConvertToUnixSlashes(loc); return loc; } |