Ver código fonte

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

Fixed differences in getting of the project version for Make and Cmake.
KonstantinKondrashov 7 anos atrás
pai
commit
187f9945bc

+ 1 - 0
tools/cmake/third_party/GetGitRevisionDescription.cmake

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