forked from espressif/esp-idf
cmake: Project & IDF git revisions: Show un-annotated tags and -dirty flag
Adds --tags and --dirty flags to cmake git_describe() calls, and not pass the HEAD commit hash (incompatible with --dirty) Makes IDF_VER output the same as in Make build system Thanks to @william-ferguson-au for reporting this: https://github.com/espressif/esp-idf/issues/3378#event-2355460974
This commit is contained in:
committed by
Angus Gratton
parent
3bf56cdd17
commit
95dcfecedc
@@ -113,7 +113,8 @@ function(git_describe _var _repo_dir)
|
|||||||
${_repo_dir}
|
${_repo_dir}
|
||||||
describe
|
describe
|
||||||
"--always"
|
"--always"
|
||||||
${hash}
|
"--tags"
|
||||||
|
"--dirty"
|
||||||
${ARGN}
|
${ARGN}
|
||||||
WORKING_DIRECTORY
|
WORKING_DIRECTORY
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}"
|
"${CMAKE_CURRENT_SOURCE_DIR}"
|
||||||
|
Reference in New Issue
Block a user