summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.cxx
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2022-08-31 09:50:07 (GMT)
committerBrad King <brad.king@kitware.com>2022-08-31 13:52:38 (GMT)
commitf5a441a616c03739962b52fd8dd0deb48cc9083b (patch)
treef676e58b32305fe41125eb90614c0d1bcd5a2832 /Source/cmGlobalXCodeGenerator.cxx
parent9b4efcb92fc200d20b1ff3027cf819232db7060c (diff)
downloadCMake-f5a441a616c03739962b52fd8dd0deb48cc9083b.zip
CMake-f5a441a616c03739962b52fd8dd0deb48cc9083b.tar.gz
CMake-f5a441a616c03739962b52fd8dd0deb48cc9083b.tar.bz2
Xcode: Fix erroneous MACOSX_BUNDLE link
Refactoring in commit a2cfa2da4f (GenEx/LINK_LIBRARY: Add features for framework support on Apple, 2022-02-10, v3.24.0-rc1~661^2) accidentally removed a `GetParentDirectory` call. Restore it. Fixes: #23891
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 d5783ef..b9bbb67 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -3622,6 +3622,7 @@ void cmGlobalXCodeGenerator::AddDependAndLinkInformation(cmXCodeObject* target)
}
}
} else {
+ linkDir = cmSystemTools::GetParentDirectory(linkDir);
if (std::find(linkSearchPaths.begin(), linkSearchPaths.end(), linkDir) ==
linkSearchPaths.end()) {
linkSearchPaths.push_back(linkDir);