diff options
author | Brad King <brad.king@kitware.com> | 2017-07-14 14:40:33 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-07-14 14:40:33 (GMT) |
commit | 68a64478c51ff6feb3eb939517e53ba3de850642 (patch) | |
tree | e1fd4b35edca6da567a4f98c7a051824537dd289 /Source | |
parent | 8c7facd69b63f986d8d35c22d7e40cddc7da9467 (diff) | |
parent | 0348383b8ccb943a68cda3ecf1bdd609212ff5ca (diff) | |
download | CMake-68a64478c51ff6feb3eb939517e53ba3de850642.zip CMake-68a64478c51ff6feb3eb939517e53ba3de850642.tar.gz CMake-68a64478c51ff6feb3eb939517e53ba3de850642.tar.bz2 |
Merge branch 'xcode9support' into release-3.9
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index 9037961..3cd14e1 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -1517,6 +1517,17 @@ void cmGlobalXCodeGenerator::AddCommandsToBuildPhase( makecmd += " all"; buildphase->AddAttribute("shellScript", this->CreateString(makecmd)); buildphase->AddAttribute("showEnvVarsInLog", this->CreateString("0")); + + cmXCodeObject* outputFiles = this->CreateObject(cmXCodeObject::OBJECT_LIST); + for (std::vector<cmCustomCommand>::const_iterator i = commands.begin(); + i != commands.end(); ++i) { + std::vector<std::string> const& outputs = i->GetOutputs(); + for (std::vector<std::string>::const_iterator j = outputs.begin(); + j != outputs.end(); ++j) { + outputFiles->AddObject(this->CreateString(*j)); + } + } + buildphase->AddAttribute("outputPaths", outputFiles); } void cmGlobalXCodeGenerator::CreateCustomRulesMakefile( |