diff options
author | Johan Bjork <phb@spotify.com> | 2011-10-17 11:47:19 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2011-10-20 23:14:28 (GMT) |
commit | 5a94d099ddbd8f3d4b850957faa8c11f619c6f18 (patch) | |
tree | 915f00720c1f89d205d5e2a3626c06688c75579b /Source | |
parent | 173fb485f076089bca2aa4a7c9e2631e8c94a0b0 (diff) | |
download | CMake-5a94d099ddbd8f3d4b850957faa8c11f619c6f18.zip CMake-5a94d099ddbd8f3d4b850957faa8c11f619c6f18.tar.gz CMake-5a94d099ddbd8f3d4b850957faa8c11f619c6f18.tar.bz2 |
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.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index 09265ae..32eaef8 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -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()); |