Xcode: Inherit global settings in per-target WARNING_CFLAGS (#15224)

Allow projects to use CMAKE_CODE_ATTRIBUTE_WARNING_CFLAGS to add their
own warning flags and have them used by the targets.
This commit is contained in:
Brad King 2014-10-30 12:38:15 -04:00
parent 54ff77dc62
commit 820e95d000
1 changed files with 1 additions and 0 deletions

View File

@ -2314,6 +2314,7 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmTarget& target,
group->AddObject(this->CreateString("-Wmost"));
group->AddObject(this->CreateString("-Wno-four-char-constants"));
group->AddObject(this->CreateString("-Wno-unknown-pragmas"));
group->AddObject(this->CreateString("$(inherited)"));
buildSettings->AddAttribute("WARNING_CFLAGS", group);
}
else