1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-19 17:11:12 +02:00

Add --tags parameter to git describe command

This commit contains a workaround for git describe command using only
annotated tags and not all tags known to repository when generating its
output. Adding such parameter to git command line should change its
behavior to more proper one.

Signed-off-by: Juozas <juozaspo@gmail.com>
Reference-to: https://github.com/tenacityteam/tenacity/pull/586
This commit is contained in:
Juozas
2021-09-16 19:18:23 +03:00
committed by GitHub
parent b3c163adce
commit 0a71cad2df

View File

@@ -58,7 +58,7 @@ set( GIT_DESCRIBE "unknown" )
if( GIT_FOUND )
execute_process(
COMMAND ${GIT_EXECUTABLE} describe --abbrev=7
COMMAND ${GIT_EXECUTABLE} describe --tags --abbrev=7
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE GIT_DESCRIBE
OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_QUIET