]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Don’t print failure to “git describe” to stderr
authorJoel Rosdahl <joel@rosdahl.net>
Tue, 6 Oct 2020 16:47:38 +0000 (18:47 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 6 Oct 2020 19:51:20 +0000 (21:51 +0200)
cmake/CcacheVersion.cmake

index eb7d7314f912cbb6a05d490b6cb9c6065168208b..6247ed90e6b7e27fa3401c9d41d96e9ff80ebfcf 100644 (file)
@@ -36,7 +36,8 @@ elseif(EXISTS "${CMAKE_SOURCE_DIR}/.git")
   macro(git)
     execute_process(
       COMMAND "${GIT_EXECUTABLE}" ${ARGN}
-      OUTPUT_VARIABLE git_stdout OUTPUT_STRIP_TRAILING_WHITESPACE)
+      OUTPUT_VARIABLE git_stdout OUTPUT_STRIP_TRAILING_WHITESPACE
+      ERROR_VARIABLE git_stderr ERROR_STRIP_TRAILING_WHITESPACE)
   endmacro()
 
   git(describe --abbrev=8 --dirty)