diff options
author | Florian Maushart <FloriansGit@online.ms> | 2018-06-10 19:39:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-01-25 13:20:51 (GMT) |
commit | cb6c233eccfbb600ec16716224062627df2ff2c0 (patch) | |
tree | 501cf3fc6f86c6a735a41a770457212f82bce054 | |
parent | 1a45266cb544d73a7d7e46d6129ead1faf71fa85 (diff) | |
download | CMake-cb6c233eccfbb600ec16716224062627df2ff2c0.zip CMake-cb6c233eccfbb600ec16716224062627df2ff2c0.tar.gz CMake-cb6c233eccfbb600ec16716224062627df2ff2c0.tar.bz2 |
cmake: Add -hideShellScriptEnvironment xcodebuild option
For CMake's build tool mode add -hideShellScriptEnvironment if version
is XCode 7.0 or above
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index b8aa5a6..e9b82cf 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -372,6 +372,9 @@ void cmGlobalXCodeGenerator::GenerateBuildCommand( } } + if (this->XcodeVersion >= 70) { + makeCommand.add("-hideShellScriptEnvironment"); + } makeCommand.add(makeOptions.begin(), makeOptions.end()); } |