diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2015-09-09 00:40:34 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-09-09 00:40:34 -0400 |
commit | 87ffa7794b824e3869d9edbb0c8574cdf9a9ed27 (patch) | |
tree | 4d3a2e0a53b19c3d55448fa8ece0f6acee3b512e | |
parent | 1d1963e90e53e0a9f0eeb38d39f88fd7e78fa11e (diff) | |
parent | 231ac048aac9c2208c4a307929112edcc1c31e40 (diff) | |
download | rneovim-87ffa7794b824e3869d9edbb0c8574cdf9a9ed27.tar.gz rneovim-87ffa7794b824e3869d9edbb0c8574cdf9a9ed27.tar.bz2 rneovim-87ffa7794b824e3869d9edbb0c8574cdf9a9ed27.zip |
Merge pull request #3317 from fwalch/cmake/git-lookup
CMake: Use project directory to look for Git revision.
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c18d8982e9..1c637ced90 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 "?") |