mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Simplify multiple config handling.
Use conventional pattern of not repeating the loop body for empty config.
This commit is contained in:
@@ -135,18 +135,15 @@ void cmGeneratorExpressionEvaluationFile::Generate()
|
||||
|
||||
if (allConfigs.empty())
|
||||
{
|
||||
this->Generate("", inputExpression.get(), outputFiles);
|
||||
allConfigs.push_back("");
|
||||
}
|
||||
else
|
||||
for(std::vector<std::string>::const_iterator li = allConfigs.begin();
|
||||
li != allConfigs.end(); ++li)
|
||||
{
|
||||
for(std::vector<std::string>::const_iterator li = allConfigs.begin();
|
||||
li != allConfigs.end(); ++li)
|
||||
this->Generate(*li, inputExpression.get(), outputFiles);
|
||||
if(cmSystemTools::GetFatalErrorOccured())
|
||||
{
|
||||
this->Generate(*li, inputExpression.get(), outputFiles);
|
||||
if(cmSystemTools::GetFatalErrorOccured())
|
||||
{
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user