diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-10-22 23:17:32 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-27 06:44:21 (GMT) |
commit | 00b8c0a8d4b59dc01276d083ccae4a8138718b12 (patch) | |
tree | bfff3d3098b9674d4e74829119d57c7ef4cfd86f /Source/cmLocalGenerator.cxx | |
parent | 4c6374bcc56ea7d7f7e67c518e60de94be267256 (diff) | |
download | CMake-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.cxx | 5 |
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(); |