summaryrefslogtreecommitdiffstats
path: root/Source/cmProjectCommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-05-14 18:47:36 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-05-14 18:47:36 (GMT)
commit115e9199822a6c9395cc3bb55c57e061b5fc6315 (patch)
tree9716dc4d426e21bd9fb8dc97270f238fefc92079 /Source/cmProjectCommand.cxx
parentc5059c900036fd9500d64fbd7f9d2d3631152295 (diff)
downloadCMake-115e9199822a6c9395cc3bb55c57e061b5fc6315.zip
CMake-115e9199822a6c9395cc3bb55c57e061b5fc6315.tar.gz
CMake-115e9199822a6c9395cc3bb55c57e061b5fc6315.tar.bz2
Use new top-level check abstraction.
Diffstat (limited to 'Source/cmProjectCommand.cxx')
-rw-r--r--Source/cmProjectCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmProjectCommand.cxx b/Source/cmProjectCommand.cxx
index a9029a0..176cb0d 100644
--- a/Source/cmProjectCommand.cxx
+++ b/Source/cmProjectCommand.cxx
@@ -53,7 +53,7 @@ bool cmProjectCommand
// CMAKE_PROJECT_NAME will match PROJECT_NAME, and cmake --build
// will work.
if(!this->Makefile->GetDefinition("CMAKE_PROJECT_NAME")
- || (this->Makefile->GetLocalGenerator()->GetParent() == 0) )
+ || (this->Makefile->GetLocalGenerator()->IsRootMakefile()))
{
this->Makefile->AddDefinition("CMAKE_PROJECT_NAME", args[0].c_str());
this->Makefile->AddCacheDefinition