mirror of
https://github.com/neovim/neovim.git
synced 2025-10-11 12:26:37 +00:00
build: restrict git describe
to top level source directory (#20993)
fix version determination when building neovim from release tarball extracted within another git repository
This commit is contained in:
@@ -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})
|
||||
|
||||
|
Reference in New Issue
Block a user