Skip to content

Commit

Permalink
Merge pull request #1583 from heinezen/fix/version-tag-format
Browse files Browse the repository at this point in the history
Fix version tag regex failure when HEAD is tagged
  • Loading branch information
TheJJ committed Oct 18, 2023
2 parents ded806b + 296dd91 commit e83bb4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildsystem/DetectProjectVersion.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ endif()
if(IS_DIRECTORY "${CMAKE_SOURCE_DIR}/.git")
message(STATUS "Set PROJECT_VERSION from git.")
execute_process(
COMMAND git describe --tags
COMMAND git describe --tags --long
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
RESULT_VARIABLE _RES
OUTPUT_VARIABLE PROJECT_VERSION
Expand Down

0 comments on commit e83bb4e

Please sign in to comment.