mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 23:28:32 -05:00
cmVSSetupHelper: Fix install location encoding conversion
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||||
file Copyright.txt or https://cmake.org/licensing for details. */
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
||||||
#include "cmVSSetupHelper.h"
|
#include "cmVSSetupHelper.h"
|
||||||
|
|
||||||
#include "cmSystemTools.h"
|
#include "cmSystemTools.h"
|
||||||
|
#include "cmsys/Encoding.hxx"
|
||||||
|
|
||||||
#ifndef VSSetupConstants
|
#ifndef VSSetupConstants
|
||||||
#define VSSetupConstants
|
#define VSSetupConstants
|
||||||
@@ -51,8 +53,7 @@ const WCHAR* ComponentType = L"Component";
|
|||||||
|
|
||||||
std::string VSInstanceInfo::GetInstallLocation() const
|
std::string VSInstanceInfo::GetInstallLocation() const
|
||||||
{
|
{
|
||||||
std::string loc(this->VSInstallLocation.begin(),
|
std::string loc = cmsys::Encoding::ToNarrow(this->VSInstallLocation);
|
||||||
this->VSInstallLocation.end());
|
|
||||||
cmSystemTools::ConvertToUnixSlashes(loc);
|
cmSystemTools::ConvertToUnixSlashes(loc);
|
||||||
return loc;
|
return loc;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user