mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
Merge pull request #3317 from fwalch/cmake/git-lookup
CMake: Use project directory to look for Git revision.
This commit is contained in:
commit
87ffa7794b
@ -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 "?")
|
||||
|
Loading…
Reference in New Issue
Block a user