diff options
author | Biswapriyo Nath <nathbappai@gmail.com> | 2023-03-05 23:20:25 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-05 18:50:25 +0100 |
commit | ca3bc56a3b1b3454498a4a23c0d700486d554077 (patch) | |
tree | b2b70f48208087971239b72a1d15885c280d5ff6 | |
parent | 5dcf544f8a879eaac29ee7cfc9eee6f0e027415f (diff) | |
download | rneovim-ca3bc56a3b1b3454498a4a23c0d700486d554077.tar.gz rneovim-ca3bc56a3b1b3454498a4a23c0d700486d554077.tar.bz2 rneovim-ca3bc56a3b1b3454498a4a23c0d700486d554077.zip |
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'
-rw-r--r-- | cmake/GenerateVersion.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
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) |