summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2017-04-28 16:06:00 +0000
committerTim Northover <tnorthover@apple.com>2017-04-28 16:06:00 +0000
commit0bda850299cfefcb76f78d4056a5e49fd721a5f1 (patch)
tree672d3327752fb4c0b1ac393451ce8081d7c2d6d2 /cmake
parent98e89d3bb4e0caf4633082edb4e427e3b29411a2 (diff)
CMake: ignore git stderr when trying to sort out revision. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301650 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 983b48fefa0e..a2ff4c0776a5 100644
--- a/cmake/modules/VersionFromVCS.cmake
+++ b/cmake/modules/VersionFromVCS.cmake
@@ -45,7 +45,8 @@ function(add_version_info_from_vcs VERS)
WORKING_DIRECTORY ${SOURCE_DIR}
TIMEOUT 5
RESULT_VARIABLE git_result
- OUTPUT_VARIABLE git_output)
+ OUTPUT_VARIABLE git_output
+ ERROR_QUIET)
if( git_result EQUAL 0 )
string(REGEX MATCH "URL: ([^ \n]*)" svn_url ${git_output})
if(svn_url)