浏览代码

cmLocalGenerator: Remove redundant path access.

Stephen Kelly 10 年之前
父节点
当前提交
fa9eb814b3
共有 1 个文件被更改,包括 1 次插入2 次删除
  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;
     }