Skip to content

Commit

Permalink
Git version detection: ensure correct tag is returned if present
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlaltca committed Dec 7, 2023
1 parent 2dda5d0 commit 30fc859
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ if(MANUAL_REVISION_UNSET)
if(GIT_FOUND)
message(STATUS "Found Git ${GIT_VERSION_STRING}")
execute_process(
COMMAND ${GIT_EXECUTABLE} describe "--dirty"
COMMAND ${GIT_EXECUTABLE} describe "--dirty" "--always" "--tags"
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
RESULT_VARIABLE res_var
OUTPUT_VARIABLE GIT_COMMIT_ID
Expand Down

0 comments on commit 30fc859

Please sign in to comment.