git: ignore git tags starting with 'ext/' when getting the version tag

Allows for external/extra tags
This commit is contained in:
Beat Küng
2021-02-18 13:22:36 +01:00
committed by Daniel Agar
parent ae010ea55c
commit bac2a02a65
4 changed files with 4 additions and 4 deletions

View File

@@ -113,7 +113,7 @@ include(px4_parse_function_args)
include(px4_git)
execute_process(
COMMAND git describe --always --tags
COMMAND git describe --exclude ext/* --always --tags
OUTPUT_VARIABLE PX4_GIT_TAG
OUTPUT_STRIP_TRAILING_WHITESPACE
WORKING_DIRECTORY ${PX4_SOURCE_DIR}