cmMakefile: Implement ConfigureSubDirectory in terms of cmMakefile.
This commit is contained in:
parent
f059ed165b
commit
d65e01235d
@ -1604,17 +1604,17 @@ void cmMakefile::Configure()
|
|||||||
std::vector<cmLocalGenerator*>::iterator sdi = subdirs.begin();
|
std::vector<cmLocalGenerator*>::iterator sdi = subdirs.begin();
|
||||||
for (; sdi != subdirs.end(); ++sdi)
|
for (; sdi != subdirs.end(); ++sdi)
|
||||||
{
|
{
|
||||||
this->ConfigureSubDirectory(*sdi);
|
this->ConfigureSubDirectory((*sdi)->GetMakefile());
|
||||||
}
|
}
|
||||||
|
|
||||||
this->AddCMakeDependFilesFromUser();
|
this->AddCMakeDependFilesFromUser();
|
||||||
this->SetConfigured();
|
this->SetConfigured();
|
||||||
}
|
}
|
||||||
|
|
||||||
void cmMakefile::ConfigureSubDirectory(cmLocalGenerator *lg2)
|
void cmMakefile::ConfigureSubDirectory(cmMakefile *mf)
|
||||||
{
|
{
|
||||||
lg2->GetMakefile()->InitializeFromParent();
|
mf->InitializeFromParent();
|
||||||
std::string currentStart = lg2->GetMakefile()->GetCurrentSourceDirectory();
|
std::string currentStart = mf->GetCurrentSourceDirectory();
|
||||||
if (this->GetCMakeInstance()->GetDebugOutput())
|
if (this->GetCMakeInstance()->GetDebugOutput())
|
||||||
{
|
{
|
||||||
std::string msg=" Entering ";
|
std::string msg=" Entering ";
|
||||||
@ -1652,11 +1652,11 @@ void cmMakefile::ConfigureSubDirectory(cmLocalGenerator *lg2)
|
|||||||
// NEW behavior prints the error.
|
// NEW behavior prints the error.
|
||||||
this->IssueMessage(cmake::FATAL_ERROR, e.str());
|
this->IssueMessage(cmake::FATAL_ERROR, e.str());
|
||||||
}
|
}
|
||||||
lg2->GetMakefile()->SetConfigured();
|
mf->SetConfigured();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// finally configure the subdir
|
// finally configure the subdir
|
||||||
lg2->GetMakefile()->Configure();
|
mf->Configure();
|
||||||
|
|
||||||
if (this->GetCMakeInstance()->GetDebugOutput())
|
if (this->GetCMakeInstance()->GetDebugOutput())
|
||||||
{
|
{
|
||||||
@ -1695,7 +1695,7 @@ void cmMakefile::AddSubDirectory(const std::string& srcPath,
|
|||||||
|
|
||||||
if (immediate)
|
if (immediate)
|
||||||
{
|
{
|
||||||
this->ConfigureSubDirectory(lg2);
|
this->ConfigureSubDirectory(lg2->GetMakefile());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -275,7 +275,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
* Configure a subdirectory
|
* Configure a subdirectory
|
||||||
*/
|
*/
|
||||||
void ConfigureSubDirectory(cmLocalGenerator *);
|
void ConfigureSubDirectory(cmMakefile* mf);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add an include directory to the build.
|
* Add an include directory to the build.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user