Move the exported check for file existence.
Check only once, in the Config.cmake file, instead of once in each Config-<cfg>.cmake file.
This commit is contained in:
parent
cfd4f0a4f4
commit
6c828f9126
@ -104,6 +104,8 @@ bool cmExportInstallFileGenerator::GenerateMainFile(std::ostream& os)
|
|||||||
<< "ENDFOREACH(f)\n"
|
<< "ENDFOREACH(f)\n"
|
||||||
<< "\n";
|
<< "\n";
|
||||||
|
|
||||||
|
this->GenerateImportedFileCheckLoop(os);
|
||||||
|
|
||||||
// Generate an import file for each configuration.
|
// Generate an import file for each configuration.
|
||||||
bool result = true;
|
bool result = true;
|
||||||
for(std::vector<std::string>::const_iterator
|
for(std::vector<std::string>::const_iterator
|
||||||
@ -249,8 +251,6 @@ cmExportInstallFileGenerator
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this->GenerateImportedFileCheckLoop(os);
|
|
||||||
|
|
||||||
// Cleanup the import prefix variable.
|
// Cleanup the import prefix variable.
|
||||||
if(!this->ImportPrefix.empty())
|
if(!this->ImportPrefix.empty())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user