mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-16 03:32:18 -06:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user