Explorar o código

cmLocalGenerator: Remove redundant path access.

Stephen Kelly %!s(int64=10) %!d(string=hai) anos
pai
achega
fa9eb814b3
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      Source/cmLocalGenerator.cxx

+ 1 - 2
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;
     }