summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.cxx
diff options
context:
space:
mode:
authorDanny Parker <danny@ninjakiwi.com>2021-05-03 14:10:05 (GMT)
committerDanny Parker <danny@ninjakiwi.com>2021-05-05 13:38:33 (GMT)
commitdfaf55fbfd72e9706461592933df8686067b0e5f (patch)
treea499d6a83ebcc1deec5013c83a483d41670adbb2 /Source/cmGlobalXCodeGenerator.cxx
parent4df3f5300a13827336ca5329b53834cf0fb63a7d (diff)
downloadCMake-dfaf55fbfd72e9706461592933df8686067b0e5f.zip
CMake-dfaf55fbfd72e9706461592933df8686067b0e5f.tar.gz
CMake-dfaf55fbfd72e9706461592933df8686067b0e5f.tar.bz2
Xcode: add extra '$(inherited)' entries using InheritBuildSettingAttribute.
These have been added to: GCC_PREPROCESSOR_DEFINITIONS OTHER_CFLAGS OTHER_LDFLAGS This is to allow Cocoapods to work correctly as it uses xcconfig files to alter build settings in Xcode, and requires these build settings to inherit from their parent, not overwrite.
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index d6909c3..3ed5ee3 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -4318,6 +4318,9 @@ bool cmGlobalXCodeGenerator::CreateXCodeObjects(
this->InheritBuildSettingAttribute(t, "SYSTEM_FRAMEWORK_SEARCH_PATHS");
this->InheritBuildSettingAttribute(t, "LIBRARY_SEARCH_PATHS");
this->InheritBuildSettingAttribute(t, "LD_RUNPATH_SEARCH_PATHS");
+ this->InheritBuildSettingAttribute(t, "GCC_PREPROCESSOR_DEFINITIONS");
+ this->InheritBuildSettingAttribute(t, "OTHER_CFLAGS");
+ this->InheritBuildSettingAttribute(t, "OTHER_LDFLAGS");
}
if (this->XcodeBuildSystem == BuildSystem::One) {