Skip to content

Commit 16a9672

Browse files
committed
CMake: Call git describe with --tags
1 parent 0e22a92 commit 16a9672

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/GitVersionSemverfier.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ if(GIT_FOUND AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git")
2828
"${_git_dir}/HEAD"
2929
)
3030

31-
execute_process(COMMAND ${GIT_EXECUTABLE} describe --long
31+
execute_process(COMMAND ${GIT_EXECUTABLE} describe --tags --long
3232
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
3333
RESULT_VARIABLE _git_code
3434
OUTPUT_VARIABLE _git_result

0 commit comments

Comments
 (0)