mirror of
https://github.com/reactos/CMake.git
synced 2025-02-15 09:07:37 +00:00
Merge topic 'fix-MAP_IMPORTED_CONFIG-evaluation'
15d98a4 Genex: Fix evaluation of MAP_IMPORTED_CONFIG_<CONFIG>
This commit is contained in:
commit
b6f6802b3d
@ -574,14 +574,15 @@ static const struct ConfigurationTestNode : public cmGeneratorExpressionNode
|
||||
// Check if there is a proper config mapping for the tested config.
|
||||
std::vector<std::string> mappedConfigs;
|
||||
std::string mapProp = "MAP_IMPORTED_CONFIG_";
|
||||
mapProp += context->Config;
|
||||
mapProp += cmSystemTools::UpperCase(context->Config);
|
||||
if(const char* mapValue =
|
||||
context->CurrentTarget->GetProperty(mapProp.c_str()))
|
||||
{
|
||||
cmSystemTools::ExpandListArgument(cmSystemTools::UpperCase(mapValue),
|
||||
mappedConfigs);
|
||||
return std::find(mappedConfigs.begin(), mappedConfigs.end(),
|
||||
context->Config) != mappedConfigs.end() ? "1" : "0";
|
||||
cmSystemTools::UpperCase(parameters.front()))
|
||||
!= mappedConfigs.end() ? "1" : "0";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user