瀏覽代碼

cmLocalGenerator: Implement IsRootMakefile in terms of cmState.

Stephen Kelly 10 年之前
父節點
當前提交
7601a7b12d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Source/cmLocalGenerator.cxx

+ 1 - 1
Source/cmLocalGenerator.cxx

@@ -76,7 +76,7 @@ cmLocalGenerator::~cmLocalGenerator()
 
 
 bool cmLocalGenerator::IsRootMakefile() const
 bool cmLocalGenerator::IsRootMakefile() const
 {
 {
-  return !this->GetParent();
+  return !this->StateSnapshot.GetParent().IsValid();
 }
 }
 
 
 //----------------------------------------------------------------------------
 //----------------------------------------------------------------------------