mirror of https://github.com/thesofproject/sof.git
cmake: version: consider unannotated tags
Command git describe looks only for annotated tags, but we should get any tag reachable from master, that's why --tags flag is needed. Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
This commit is contained in:
parent
79bbca113d
commit
c1f4c3f197
|
@ -21,7 +21,7 @@ if(EXISTS ${TARBALL_VERSION_SOURCE_PATH})
|
|||
message(STATUS "Found ${TARBALL_VERSION_FILE_NAME}")
|
||||
message(STATUS "Version: ${GIT_TAG} / ${GIT_LOG_HASH}")
|
||||
else()
|
||||
execute_process(COMMAND git describe --abbrev=4
|
||||
execute_process(COMMAND git describe --tags --abbrev=4
|
||||
OUTPUT_VARIABLE GIT_TAG
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
ERROR_QUIET
|
||||
|
|
Loading…
Reference in New Issue