Commit 8ff5aeb7 authored by Brad King's avatar Brad King Committed by Kitware Robot

Merge topic 'xcode9support'

0348383b Xcode: Add "outputPaths" to custom command script build phase
Acked-by: Kitware Robot's avatarKitware Robot <>
Merge-request: !1054
parents 3ce57e3b 0348383b
......@@ -34,6 +34,8 @@ Generators
This is an experimental feature and can be activated by setting the
:variable:`CMAKE_XCODE_GENERATE_SCHEME` variable to a ``TRUE`` value.
* The :generator:`Xcode` generator now supports Xcode 9.
......@@ -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) {
buildphase->AddAttribute("outputPaths", outputFiles);
void cmGlobalXCodeGenerator::CreateCustomRulesMakefile(
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment