cmLocalGenerator: Remove redundant path access.
This commit is contained in:
parent
1933f3d1a3
commit
fa9eb814b3
@ -365,9 +365,8 @@ void cmLocalGenerator::GenerateInstallRules()
|
|||||||
// Create the install script file.
|
// Create the install script file.
|
||||||
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();
|
|
||||||
int toplevel_install = 0;
|
int toplevel_install = 0;
|
||||||
if ( currdir == homedir )
|
if (file == homedir)
|
||||||
{
|
{
|
||||||
toplevel_install = 1;
|
toplevel_install = 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user