From ca3bc56a3b1b3454498a4a23c0d700486d554077 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Sun, 5 Mar 2023 23:20:25 +0530 Subject: build: silence git describe error output This change will silence the warning from git describe command when the project is built using source tarball. The warning is fatal: not a git repository: 'neovim/.git' --- cmake/GenerateVersion.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/GenerateVersion.cmake b/cmake/GenerateVersion.cmake index c092645140..ab046e93ba 100644 --- a/cmake/GenerateVersion.cmake +++ b/cmake/GenerateVersion.cmake @@ -5,6 +5,7 @@ execute_process( COMMAND git --git-dir=${NVIM_SOURCE_DIR}/.git --work-tree=${NVIM_SOURCE_DIR} describe --first-parent --dirty --always OUTPUT_VARIABLE GIT_TAG OUTPUT_STRIP_TRAILING_WHITESPACE + ERROR_QUIET RESULT_VARIABLE RES) if(RES) -- cgit