diff options
author | Brad King <brad.king@kitware.com> | 2011-06-06 17:34:43 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-06-06 17:44:11 -0400 |
commit | 44cdae921d627bc4b113dad971350db64e3c277a (patch) | |
tree | 826d5db324609618eed6e307eb2be4caf2d8a15a /Source/cmXCodeObject.h | |
parent | 4b652ad0d9c83b30ac34f53a1b90fc0a153c6293 (diff) | |
download | cmake-44cdae921d627bc4b113dad971350db64e3c277a.tar.gz |
Xcode: Fix parallel build depends with universal binaries (#11844)
A post-build phase of each target invokes the XCODE_DEPEND_HELPER.make
file to erase any targets that link to it. Narrow the set of targets
tested by each post-build phase to those that depend on the newly
completed target. This avoids removing files from partially built
unrelated targets that happen to be building in parallel.
Diffstat (limited to 'Source/cmXCodeObject.h')
-rw-r--r-- | Source/cmXCodeObject.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/cmXCodeObject.h b/Source/cmXCodeObject.h index bdb4f1598a..369fe669d0 100644 --- a/Source/cmXCodeObject.h +++ b/Source/cmXCodeObject.h @@ -139,6 +139,19 @@ public: { return this->DependLibraries; } + void AddDependTarget(const char* configName, + const char* tName) + { + if(!configName) + { + configName = ""; + } + this->DependTargets[configName].push_back(tName); + } + std::map<cmStdString, StringVec> const& GetDependTargets() + { + return this->DependTargets; + } std::vector<cmXCodeObject*> const& GetObjectList() { return this->List;} void SetComment(const char* c) { this->Comment = c;} static void PrintString(std::ostream& os,cmStdString String); @@ -156,6 +169,7 @@ protected: cmXCodeObject* PBXTargetDependencyValue; std::vector<cmXCodeObject*> List; std::map<cmStdString, StringVec> DependLibraries; + std::map<cmStdString, StringVec> DependTargets; std::map<cmStdString, cmXCodeObject*> ObjectAttributes; }; #endif |