Xcode: Avoid spewing the environment on every script run (#12522)
This is the prefered way to get rid of the 'setenv XXX' output, instead of stripping it in the cmakexbuild wrapper.
This commit is contained in:
parent
173fb485f0
commit
5a94d099dd
|
@ -1328,6 +1328,8 @@ cmGlobalXCodeGenerator::AddCommandsToBuildPhase(cmXCodeObject* buildphase,
|
|||
cmSystemTools::ReplaceString(makecmd, "\\ ", "\\\\ ");
|
||||
buildphase->AddAttribute("shellScript",
|
||||
this->CreateString(makecmd.c_str()));
|
||||
buildphase->AddAttribute("showEnvVarsInLog",
|
||||
this->CreateString("0"));
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
@ -2065,6 +2067,9 @@ cmGlobalXCodeGenerator::CreateUtilityTarget(cmTarget& cmtarget)
|
|||
shellBuildPhase->AddAttribute("shellScript",
|
||||
this->CreateString(
|
||||
"# shell script goes here\nexit 0"));
|
||||
shellBuildPhase->AddAttribute("showEnvVarsInLog",
|
||||
this->CreateString("0"));
|
||||
|
||||
cmXCodeObject* target =
|
||||
this->CreateObject(cmXCodeObject::PBXAggregateTarget);
|
||||
target->SetComment(cmtarget.GetName());
|
||||
|
|
Loading…
Reference in New Issue