summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-22 23:17:32 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-27 06:44:21 (GMT)
commit00b8c0a8d4b59dc01276d083ccae4a8138718b12 (patch)
treebfff3d3098b9674d4e74829119d57c7ef4cfd86f /Source/cmLocalGenerator.cxx
parent4c6374bcc56ea7d7f7e67c518e60de94be267256 (diff)
downloadCMake-00b8c0a8d4b59dc01276d083ccae4a8138718b12.zip
CMake-00b8c0a8d4b59dc01276d083ccae4a8138718b12.tar.gz
CMake-00b8c0a8d4b59dc01276d083ccae4a8138718b12.tar.bz2
cmLocalGenerator: Add IsRootMakefile API
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 5f0242e..1926772 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -490,6 +490,11 @@ void cmLocalGenerator::ComputeTargetManifest()
}
}
+bool cmLocalGenerator::IsRootMakefile() const
+{
+ return !this->StateSnapshot.GetBuildsystemDirectoryParent().IsValid();
+}
+
cmState* cmLocalGenerator::GetState() const
{
return this->GlobalGenerator->GetCMakeInstance()->GetState();