mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-23 00:48:55 +08:00
cmLocalGenerator: Remove redundant path conversions.
The methods just called store the paths in already-converted form.
This commit is contained in:
@@ -366,9 +366,6 @@ void cmLocalGenerator::GenerateInstallRules()
|
|||||||
std::string file = this->StateSnapshot.GetCurrentBinaryDirectory();
|
std::string file = this->StateSnapshot.GetCurrentBinaryDirectory();
|
||||||
std::string homedir = this->GetState()->GetBinaryDirectory();
|
std::string homedir = this->GetState()->GetBinaryDirectory();
|
||||||
std::string currdir = this->StateSnapshot.GetCurrentBinaryDirectory();
|
std::string currdir = this->StateSnapshot.GetCurrentBinaryDirectory();
|
||||||
cmSystemTools::ConvertToUnixSlashes(file);
|
|
||||||
cmSystemTools::ConvertToUnixSlashes(homedir);
|
|
||||||
cmSystemTools::ConvertToUnixSlashes(currdir);
|
|
||||||
int toplevel_install = 0;
|
int toplevel_install = 0;
|
||||||
if ( currdir == homedir )
|
if ( currdir == homedir )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user