diff options
author | Brad King <brad.king@kitware.com> | 2022-09-29 18:31:26 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-09-29 19:04:07 (GMT) |
commit | dc5fc898f68846b24723b5702731ee2efb94f603 (patch) | |
tree | 61c6698b4d6eed2d3e9506efc8a47063435fa1f4 /Source/cmGeneratorTarget.cxx | |
parent | a7fb4bc4750ed2d8f4eb6e2aca312cc35b8e96cc (diff) | |
download | CMake-dc5fc898f68846b24723b5702731ee2efb94f603.zip CMake-dc5fc898f68846b24723b5702731ee2efb94f603.tar.gz CMake-dc5fc898f68846b24723b5702731ee2efb94f603.tar.bz2 |
Xcode: Set object file locations using TARGET_TEMP_DIR
This avoids relying on `SYMROOT` to locate the object files.
Issue: #22550
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 7f1e426..53cb030 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -5454,9 +5454,6 @@ std::string cmGeneratorTarget::GetObjectDirectory( std::string obj_dir = this->GlobalGenerator->ExpandCFGIntDir(this->ObjectDirectory, config); #if defined(__APPLE__) - // find and replace $(PROJECT_NAME) xcode placeholder - const std::string projectName = this->LocalGenerator->GetProjectName(); - cmSystemTools::ReplaceString(obj_dir, "$(PROJECT_NAME)", projectName); // Replace Xcode's placeholder for the object file directory since // installation and export scripts need to know the real directory. // Xcode has build-time settings (e.g. for sanitizers) that affect this, |