cmMakefile: Move IsRoot API from cmLocalGenerator.

This commit is contained in:
Stephen Kelly
2015-06-06 14:07:15 +02:00
parent 217c243db0
commit 8bfaadfa39
7 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -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()->IsRootMakefile()))
|| (this->Makefile->IsRootMakefile()))
{
this->Makefile->AddDefinition("CMAKE_PROJECT_NAME", args[0].c_str());
this->Makefile->AddCacheDefinition