summaryrefslogtreecommitdiffstats
path: root/Source/cmProjectCommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-06-06 12:07:15 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-06-21 19:14:05 (GMT)
commit8bfaadfa394c9b462259ea13df6b2df7c4544ab4 (patch)
tree1a845ae755348b3fa2962758b05abf5570acccfc /Source/cmProjectCommand.cxx
parent217c243db04a21763848ac048edf153cd93bd883 (diff)
downloadCMake-8bfaadfa394c9b462259ea13df6b2df7c4544ab4.zip
CMake-8bfaadfa394c9b462259ea13df6b2df7c4544ab4.tar.gz
CMake-8bfaadfa394c9b462259ea13df6b2df7c4544ab4.tar.bz2
cmMakefile: Move IsRoot API from cmLocalGenerator.
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 90bc111..46d7e01 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()->IsRootMakefile()))
+ || (this->Makefile->IsRootMakefile()))
{
this->Makefile->AddDefinition("CMAKE_PROJECT_NAME", args[0].c_str());
this->Makefile->AddCacheDefinition