mirror of
https://github.com/neovim/neovim.git
synced 2026-01-30 00:52:52 +10:00
Merge pull request #3317 from fwalch/cmake/git-lookup
CMake: Use project directory to look for Git revision.
This commit is contained in:
@@ -48,6 +48,7 @@ endif()
|
||||
|
||||
# Version tokens
|
||||
include(GetGitRevisionDescription)
|
||||
file(TO_NATIVE_PATH ${CMAKE_CURRENT_LIST_DIR}/.git GIT_DIR)
|
||||
get_git_head_revision(GIT_REFSPEC NVIM_VERSION_COMMIT)
|
||||
if(NOT NVIM_VERSION_COMMIT)
|
||||
set(NVIM_VERSION_COMMIT "?")
|
||||
|
||||
Reference in New Issue
Block a user