Fix git version in scm_rev.cpp

This commit is contained in:
James Rowe 2020-01-16 00:12:50 -07:00
parent 399da88e9f
commit 47197f6b18
2 changed files with 9 additions and 0 deletions

View file

@ -5,6 +5,10 @@ function(get_timestamp _var)
endfunction()
list(APPEND CMAKE_MODULE_PATH "${SRC_DIR}/externals/cmake-modules")
# Find the package here with the known path so that the GetGit commands can find it as well
find_package(Git QUIET PATHS "${GIT_EXECUTABLE}")
# generate git/build information
include(GetGitRevisionDescription)
get_git_head_revision(GIT_REF_SPEC GIT_REV)