Browse Source

cmake: Add -hideShellScriptEnvironment xcodebuild option

For CMake's build tool mode add -hideShellScriptEnvironment if version
is XCode 7.0 or above
Florian Maushart 7 years ago
parent
commit
cb6c233ecc
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Source/cmGlobalXCodeGenerator.cxx

+ 3 - 0
Source/cmGlobalXCodeGenerator.cxx

@@ -372,6 +372,9 @@ void cmGlobalXCodeGenerator::GenerateBuildCommand(
     }
     }
   }
   }
 
 
+  if (this->XcodeVersion >= 70) {
+    makeCommand.add("-hideShellScriptEnvironment");
+  }
   makeCommand.add(makeOptions.begin(), makeOptions.end());
   makeCommand.add(makeOptions.begin(), makeOptions.end());
 }
 }