aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Palus <jpalus@fastmail.com>2022-12-02 13:45:37 +0100
committerGitHub <noreply@github.com>2022-12-02 13:45:37 +0100
commita3f01d32cba903b58e3ab5a353b4dba8c5431f9c (patch)
tree657083412b381d32342ae4afaa5e2db5d6fd005d /src
parentc95a0c99592e5bd17c630ea31618026ae6b5ea34 (diff)
downloadrneovim-a3f01d32cba903b58e3ab5a353b4dba8c5431f9c.tar.gz
rneovim-a3f01d32cba903b58e3ab5a353b4dba8c5431f9c.tar.bz2
rneovim-a3f01d32cba903b58e3ab5a353b4dba8c5431f9c.zip
build: restrict `git describe` to top level source directory (#20993)
fix version determination when building neovim from release tarball extracted within another git repository
Diffstat (limited to 'src')
-rwxr-xr-xsrc/nvim/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt
index 6511fe6fbb..5a64128bcb 100755
--- a/src/nvim/CMakeLists.txt
+++ b/src/nvim/CMakeLists.txt
@@ -206,6 +206,7 @@ add_custom_target(update_version_stamp
-DNVIM_VERSION_PATCH=${NVIM_VERSION_PATCH}
-DNVIM_VERSION_PRERELEASE=${NVIM_VERSION_PRERELEASE}
-DOUTPUT=${NVIM_VERSION_GIT_H}
+ -DNVIM_SOURCE_DIR=${CMAKE_SOURCE_DIR}
-P ${PROJECT_SOURCE_DIR}/cmake/GenerateVersion.cmake
BYPRODUCTS ${NVIM_VERSION_GIT_H})