summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.cxx
diff options
context:
space:
mode:
authorGregor Jasny <gregor.jasny@logmein.com>2021-12-22 10:38:52 (GMT)
committerGregor Jasny <gregor.jasny@logmein.com>2021-12-22 10:38:52 (GMT)
commit7d99cff236af619a7f1d8275575cd27050809322 (patch)
tree41b4357c69ddf8be2e99fe3585f83085e13b162d /Source/cmGlobalXCodeGenerator.cxx
parent68b0c62a72a4d3352ed909c208400d02e65a4b61 (diff)
downloadCMake-7d99cff236af619a7f1d8275575cd27050809322.zip
CMake-7d99cff236af619a7f1d8275575cd27050809322.tar.gz
CMake-7d99cff236af619a7f1d8275575cd27050809322.tar.bz2
Xcode: Properly identify frameworks with system includes
Check the complete include path for being a system include, not the derived framework search path. The code for Ninja and Makefile generators does exactly the same. Fixes: #23011
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index 44a3eb7..bc2a6f7 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -2683,7 +2683,7 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmGeneratorTarget* gtgt,
if (emitted.insert(frameworkDir).second) {
std::string incpath = this->XCodeEscapePath(frameworkDir);
if (emitSystemIncludes &&
- gtgt->IsSystemIncludeDirectory(frameworkDir, configName,
+ gtgt->IsSystemIncludeDirectory(include, configName,
langForPreprocessor)) {
sysfdirs.Add(incpath);
} else {