]> granicus.if.org Git - esp-idf/commitdiff
tools: Add --always option to git describe for Cmake
authorKonstantinKondrashov <konstantin@espressif.com>
Fri, 11 Jan 2019 10:09:12 +0000 (18:09 +0800)
committerKonstantin Kondrashov <konstantin@espressif.com>
Thu, 24 Jan 2019 04:06:55 +0000 (12:06 +0800)
Fixed differences in getting of the project version for Make and Cmake.

tools/cmake/third_party/GetGitRevisionDescription.cmake

index 70aaedd7062495832cf0040d5729baa8de5cbec2..51468b39b3f0ec5a8150b20c336835c7f58299da 100644 (file)
@@ -112,6 +112,7 @@ function(git_describe _var _repo_dir)
                "-C"
                ${_repo_dir}
                describe
+               "--always"
                ${hash}
                ${ARGN}
                WORKING_DIRECTORY