tools: Add --always option to git describe for Cmake

Fixed differences in getting of the project version for Make and Cmake.
This commit is contained in:
KonstantinKondrashov
2019-01-11 18:09:12 +08:00
committed by Konstantin Kondrashov
parent 58acac883d
commit 187f9945bc

View File

@@ -112,6 +112,7 @@ function(git_describe _var _repo_dir)
"-C" "-C"
${_repo_dir} ${_repo_dir}
describe describe
"--always"
${hash} ${hash}
${ARGN} ${ARGN}
WORKING_DIRECTORY WORKING_DIRECTORY