cmGlobalGenerator: Return from Compute whether to generate.
This commit is contained in:
parent
29e8b7bfcc
commit
fb9355c50e
|
@ -1212,7 +1212,7 @@ bool cmGlobalGenerator::CheckALLOW_DUPLICATE_CUSTOM_TARGETS() const
|
|||
return false;
|
||||
}
|
||||
|
||||
void cmGlobalGenerator::Compute()
|
||||
bool cmGlobalGenerator::Compute()
|
||||
{
|
||||
// Some generators track files replaced during the Generate.
|
||||
// Start with an empty vector:
|
||||
|
@ -1220,16 +1220,17 @@ void cmGlobalGenerator::Compute()
|
|||
|
||||
// clear targets to issue warning CMP0042 for
|
||||
this->CMP0042WarnTargets.clear();
|
||||
|
||||
// Check whether this generator is allowed to run.
|
||||
if(!this->CheckALLOW_DUPLICATE_CUSTOM_TARGETS())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void cmGlobalGenerator::Generate()
|
||||
{
|
||||
// Check whether this generator is allowed to run.
|
||||
if(!this->CheckALLOW_DUPLICATE_CUSTOM_TARGETS())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
this->FinalizeTargetCompileInfo();
|
||||
|
||||
this->CreateGenerationObjects();
|
||||
|
|
|
@ -86,7 +86,7 @@ public:
|
|||
*/
|
||||
virtual void Configure();
|
||||
|
||||
void Compute();
|
||||
bool Compute();
|
||||
|
||||
enum TargetTypes {
|
||||
AllTargets,
|
||||
|
|
|
@ -1607,7 +1607,10 @@ int cmake::Generate()
|
|||
{
|
||||
return -1;
|
||||
}
|
||||
this->GlobalGenerator->Compute();
|
||||
if (!this->GlobalGenerator->Compute())
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
this->GlobalGenerator->Generate();
|
||||
if ( !this->GraphVizFile.empty() )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue