summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalUnixMakefileGenerator3.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-05-14 18:47:36 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-05-14 18:47:36 (GMT)
commit115e9199822a6c9395cc3bb55c57e061b5fc6315 (patch)
tree9716dc4d426e21bd9fb8dc97270f238fefc92079 /Source/cmGlobalUnixMakefileGenerator3.cxx
parentc5059c900036fd9500d64fbd7f9d2d3631152295 (diff)
downloadCMake-115e9199822a6c9395cc3bb55c57e061b5fc6315.zip
CMake-115e9199822a6c9395cc3bb55c57e061b5fc6315.tar.gz
CMake-115e9199822a6c9395cc3bb55c57e061b5fc6315.tar.bz2
Use new top-level check abstraction.
Diffstat (limited to 'Source/cmGlobalUnixMakefileGenerator3.cxx')
-rw-r--r--Source/cmGlobalUnixMakefileGenerator3.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGlobalUnixMakefileGenerator3.cxx b/Source/cmGlobalUnixMakefileGenerator3.cxx
index f5731f4..a4df493 100644
--- a/Source/cmGlobalUnixMakefileGenerator3.cxx
+++ b/Source/cmGlobalUnixMakefileGenerator3.cxx
@@ -522,7 +522,7 @@ cmGlobalUnixMakefileGenerator3
cmLocalUnixMakefileGenerator3* lg)
{
// Only subdirectories need these rules.
- if(!lg->GetParent())
+ if(lg->IsRootMakefile())
{
return;
}
@@ -1027,7 +1027,7 @@ void cmGlobalUnixMakefileGenerator3::WriteHelpRule
static_cast<cmLocalUnixMakefileGenerator3 *>(this->LocalGenerators[i]);
// for the passed in makefile or if this is the top Makefile wripte out
// the targets
- if (lg2 == lg || !lg->GetParent())
+ if (lg2 == lg || lg->IsRootMakefile())
{
// for each target Generate the rule files for each target.
cmTargets& targets = lg2->GetMakefile()->GetTargets();