diff options
author | Brad King <brad.king@kitware.com> | 2022-09-29 18:44:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-09-29 19:04:08 (GMT) |
commit | d0a6ebf57bf4d42a5b6875d3064ce1c207b9cc40 (patch) | |
tree | d70d1c71ad8dd36c53abdb41350cf508239c275c /Source/cmGlobalXCodeGenerator.cxx | |
parent | dc5fc898f68846b24723b5702731ee2efb94f603 (diff) | |
download | CMake-d0a6ebf57bf4d42a5b6875d3064ce1c207b9cc40.zip CMake-d0a6ebf57bf4d42a5b6875d3064ce1c207b9cc40.tar.gz CMake-d0a6ebf57bf4d42a5b6875d3064ce1c207b9cc40.tar.bz2 |
Xcode: Fix "clean" operation under the "new build system"
Previously we set `SYMROOT` to tell Xcode where to place the build
products. However, the "clean" operation in the Xcode "new build
system" expects that only Xcode creates the `SYMROOT` directory or
contents inside it. Since we create that directory, "clean" fails.
We now explicitly set `CONFIGURATION_BUILD_DIR` and `TARGET_TEMP_DIR`
instead of letting Xcode compute their values from `SYMROOT`, so we no
longer need to set the latter. Drop the now-unnecessary `SYMROOT`.
Fixes: #22550
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index fab5120..31511c8 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -2552,7 +2552,6 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmGeneratorTarget* gtgt, // Store the product name for all target types. buildSettings->AddAttribute("PRODUCT_NAME", this->CreateString(realName)); - buildSettings->AddAttribute("SYMROOT", this->CreateString(pndir)); // Handle settings for each target type. switch (gtgt->GetType()) { |