aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2017-05-02 16:37:37 +0000
committerTim Northover <tnorthover@apple.com>2017-05-02 16:37:37 +0000
commitf3dc32864aff0231f746ab667f8c2e097ccabab3 (patch)
treea8f56620eab604e74bfc3f3ff2032320e977c6a2 /cmake
parent20c757b9a3e8e710ab7a4e8167a7c13fe572cf6f (diff)
downloadllvm-f3dc32864aff0231f746ab667f8c2e097ccabab3.tar.gz
CMake: Silence more stderr when running git.
It can confuse bots collecting errors. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301934 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/VersionFromVCS.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/modules/VersionFromVCS.cmake b/cmake/modules/VersionFromVCS.cmake
index a2ff4c0776a..552fe77cdfb 100644
--- a/cmake/modules/VersionFromVCS.cmake
+++ b/cmake/modules/VersionFromVCS.cmake
@@ -33,7 +33,8 @@ function(add_version_info_from_vcs VERS)
execute_process(COMMAND ${git_executable} rev-parse --git-dir
WORKING_DIRECTORY ${SOURCE_DIR}/cmake
RESULT_VARIABLE git_result
- OUTPUT_VARIABLE git_dir)
+ OUTPUT_VARIABLE git_dir
+ ERROR_QUIET)
if(git_result EQUAL 0)
# Try to get a ref-id
string(STRIP "${git_dir}" git_dir)