summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-10-03 14:31:07 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-10-03 14:31:27 (GMT)
commit42c0428e5fa8ecd37396dd48d1c800a7249c3795 (patch)
treebd2deb13960f2f8d3663e2eb08f117d98ff3e322 /Source/cmGlobalXCodeGenerator.cxx
parent6533383134c22204d1ec6d274d97f60f0a85f496 (diff)
parent9cdf4c9be4433bba018d41df046466de756e96a6 (diff)
downloadCMake-42c0428e5fa8ecd37396dd48d1c800a7249c3795.zip
CMake-42c0428e5fa8ecd37396dd48d1c800a7249c3795.tar.gz
CMake-42c0428e5fa8ecd37396dd48d1c800a7249c3795.tar.bz2
Merge topic 'ci-xcode-14.0'
9cdf4c9be4 gitlab-ci: update macOS jobs to use Xcode 14.0 5d2c2b2558 Tests: Update RunCMake.XcodeProject iOS cases for Xcode 14.0 12c6fec6b4 Xcode: Drop CMAKE_INTDIR= definition in Swift targets Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7732
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index 31511c8..6b867d4 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -2404,8 +2404,13 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmGeneratorTarget* gtgt,
// Add preprocessor definitions for this target and configuration.
BuildObjectListOrString ppDefs(this, true);
- this->AppendDefines(
- ppDefs, "CMAKE_INTDIR=\"$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)\"");
+ if (languages.count("Swift")) {
+ // FIXME: Xcode warns that Swift does not support definition values.
+ // C/CXX sources mixed in Swift targets will not see CMAKE_INTDIR.
+ } else {
+ this->AppendDefines(
+ ppDefs, "CMAKE_INTDIR=\"$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)\"");
+ }
if (const std::string* exportMacro = gtgt->GetExportMacro()) {
// Add the export symbol definition for shared library objects.
this->AppendDefines(ppDefs, exportMacro->c_str());