summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-10-30 16:38:15 (GMT)
committerBrad King <brad.king@kitware.com>2014-10-31 15:29:53 (GMT)
commit820e95d000911aae2ca0480ccb92e627f4ad0c48 (patch)
tree36531af0f244752752fd98e2eb0dbd3677ea88a9 /Source/cmGlobalXCodeGenerator.cxx
parent54ff77dc621a91302abad0ab38d9bd26de8914b9 (diff)
downloadCMake-820e95d000911aae2ca0480ccb92e627f4ad0c48.zip
CMake-820e95d000911aae2ca0480ccb92e627f4ad0c48.tar.gz
CMake-820e95d000911aae2ca0480ccb92e627f4ad0c48.tar.bz2
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.
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index 13e6988..5e7a898 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -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