summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-05-14 18:40:40 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-05-14 18:44:55 (GMT)
commitc5059c900036fd9500d64fbd7f9d2d3631152295 (patch)
tree2553a768f322c2841d6c378a409d9f7c00c5664d /Source/cmLocalGenerator.cxx
parentb17686d2bbc193f19c60cdf44a228e49b4ffe386 (diff)
downloadCMake-c5059c900036fd9500d64fbd7f9d2d3631152295.zip
CMake-c5059c900036fd9500d64fbd7f9d2d3631152295.tar.gz
CMake-c5059c900036fd9500d64fbd7f9d2d3631152295.tar.bz2
cmLocalGenerator: Add abstraction to check if top-level.
Move from the cmLocalNinjaGenerator. Fix the case of the name.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index bd6af8c..9aae5bc 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -77,6 +77,11 @@ cmLocalGenerator::~cmLocalGenerator()
delete this->Makefile;
}
+bool cmLocalGenerator::IsRootMakefile() const
+{
+ return !this->GetParent();
+}
+
//----------------------------------------------------------------------------
class cmLocalGeneratorCurrent
{