summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.h
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.h
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.h')
-rw-r--r--Source/cmLocalGenerator.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.h b/Source/cmLocalGenerator.h
index 47c0877..3459c2a 100644
--- a/Source/cmLocalGenerator.h
+++ b/Source/cmLocalGenerator.h
@@ -37,6 +37,9 @@ public:
cmLocalGenerator(cmGlobalGenerator* gg, cmLocalGenerator* parent);
virtual ~cmLocalGenerator();
+ /// @return whether we are processing the top CMakeLists.txt file.
+ bool IsRootMakefile() const;
+
/**
* Generate the makefile for this directory.
*/