mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-06 04:03:27 +03:00
cmVSSetupHelper: Fix install location encoding conversion
This commit is contained in:
1 parent
4c3116d754
commit
c6bb704ea1
1 file changed
+3
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user