mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-27 01:19:31 -05:00
cmMakefile: Move IsRoot API from cmLocalGenerator.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user