diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-06-06 12:07:15 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-06-21 19:14:05 (GMT) |
commit | 8bfaadfa394c9b462259ea13df6b2df7c4544ab4 (patch) | |
tree | 1a845ae755348b3fa2962758b05abf5570acccfc /Source/cmMakefile.cxx | |
parent | 217c243db04a21763848ac048edf153cd93bd883 (diff) | |
download | CMake-8bfaadfa394c9b462259ea13df6b2df7c4544ab4.zip CMake-8bfaadfa394c9b462259ea13df6b2df7c4544ab4.tar.gz CMake-8bfaadfa394c9b462259ea13df6b2df7c4544ab4.tar.bz2 |
cmMakefile: Move IsRoot API from cmLocalGenerator.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 0338062..cf7897e 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -1608,6 +1608,11 @@ void cmMakefile::PopMacroScope(bool reportError) this->PopFunctionBlockerBarrier(reportError); } +bool cmMakefile::IsRootMakefile() const +{ + return !this->StateSnapshot.GetBuildsystemDirectoryParent().IsValid(); +} + //---------------------------------------------------------------------------- class cmMakefileCurrent { |