summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-05-19 21:10:30 (GMT)
committerBrad King <brad.king@kitware.com>2015-05-20 15:21:09 (GMT)
commit7601a7b12d1c4a3bddb1ca34dcf38e1aea188698 (patch)
treec4ef7b45e835c7861e7e3218ebfc57da348d1e94 /Source/cmLocalGenerator.cxx
parent4080ca497e9841c73324e8cd4d1017a87065e879 (diff)
downloadCMake-7601a7b12d1c4a3bddb1ca34dcf38e1aea188698.zip
CMake-7601a7b12d1c4a3bddb1ca34dcf38e1aea188698.tar.gz
CMake-7601a7b12d1c4a3bddb1ca34dcf38e1aea188698.tar.bz2
cmLocalGenerator: Implement IsRootMakefile in terms of cmState.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 9db82da..aab6962 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -76,7 +76,7 @@ cmLocalGenerator::~cmLocalGenerator()
bool cmLocalGenerator::IsRootMakefile() const
{
- return !this->GetParent();
+ return !this->StateSnapshot.GetParent().IsValid();
}
//----------------------------------------------------------------------------