Replace loop with algorithm.
This commit is contained in:
parent
683fafea08
commit
69dbe51b08
|
@ -1153,15 +1153,11 @@ cmTarget::LinkLibraryType cmTarget::ComputeLinkType(
|
||||||
|
|
||||||
// Check if any entry in the list matches this configuration.
|
// Check if any entry in the list matches this configuration.
|
||||||
std::string configUpper = cmSystemTools::UpperCase(config);
|
std::string configUpper = cmSystemTools::UpperCase(config);
|
||||||
for(std::vector<std::string>::const_iterator i = debugConfigs.begin();
|
if (std::find(debugConfigs.begin(), debugConfigs.end(), configUpper) !=
|
||||||
i != debugConfigs.end(); ++i)
|
debugConfigs.end())
|
||||||
{
|
{
|
||||||
if(*i == configUpper)
|
return cmTarget::DEBUG;
|
||||||
{
|
|
||||||
return cmTarget::DEBUG;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// The current configuration is not a debug configuration.
|
// The current configuration is not a debug configuration.
|
||||||
return cmTarget::OPTIMIZED;
|
return cmTarget::OPTIMIZED;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue