summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-05-16 06:03:04 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-05-16 06:12:02 (GMT)
commitfa9eb814b36894635e22ffdcac3103ee980b0398 (patch)
tree33b2c95354a9276348ce69affed6cb18a662c844 /Source
parent1933f3d1a3a2be6949c439e18e03a048ef286be7 (diff)
downloadCMake-fa9eb814b36894635e22ffdcac3103ee980b0398.zip
CMake-fa9eb814b36894635e22ffdcac3103ee980b0398.tar.gz
CMake-fa9eb814b36894635e22ffdcac3103ee980b0398.tar.bz2
cmLocalGenerator: Remove redundant path access.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmLocalGenerator.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 406b6f8..528c84e 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -365,9 +365,8 @@ void cmLocalGenerator::GenerateInstallRules()
// Create the install script file.
std::string file = this->StateSnapshot.GetCurrentBinaryDirectory();
std::string homedir = this->GetState()->GetBinaryDirectory();
- std::string currdir = this->StateSnapshot.GetCurrentBinaryDirectory();
int toplevel_install = 0;
- if ( currdir == homedir )
+ if (file == homedir)
{
toplevel_install = 1;
}