MCPcopy Create free account
hub / github.com/Kitware/CMake / InheritBuildSettingAttribute

Method InheritBuildSettingAttribute

Source/cmGlobalXCodeGenerator.cxx:3720–3736  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3718}
3719
3720void cmGlobalXCodeGenerator::InheritBuildSettingAttribute(
3721 cmXCodeObject* target, char const* attribute)
3722{
3723 cmXCodeObject* configurationList =
3724 target->GetAttribute("buildConfigurationList")->GetObject();
3725 cmXCodeObject* buildConfigs =
3726 configurationList->GetAttribute("buildConfigurations");
3727 for (auto* obj : buildConfigs->GetObjectList()) {
3728 cmXCodeObject* settings = obj->GetAttribute("buildSettings");
3729 if (cmXCodeObject* attr = settings->GetAttribute(attribute)) {
3730 BuildObjectListOrString inherited(this, true);
3731 inherited.Add("$(inherited)");
3732 this->AppendBuildSettingAttribute(settings, attribute, attr,
3733 inherited.CreateList());
3734 }
3735 }
3736}
3737
3738void cmGlobalXCodeGenerator::AddDependAndLinkInformation(cmXCodeObject* target)
3739{

Callers 1

CreateXCodeObjectsMethod · 0.95

Calls 5

GetObjectMethod · 0.80
CreateListMethod · 0.80
GetAttributeMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected