mirror of
https://github.com/reactos/CMake.git
synced 2025-02-03 18:42:32 +00: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:
parent
54ff77dc62
commit
820e95d000
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user