Commit db6caa04 authored by Julie Brossard's avatar Julie Brossard

Revert "[REFAC] Switched tag and always options"

This reverts commit 1870787d.
parent 1870787d
......@@ -43,14 +43,14 @@ function(get_version root_repo_dir project_name project_version_string project_v
endif()
# Get last tag from git
execute_process(COMMAND ${GIT_EXECUTABLE} describe --abbrev=0 --always
execute_process(COMMAND ${GIT_EXECUTABLE} describe --abbrev=0 --tags
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE ${PROJECT_NAME}_VERSION_STRING
OUTPUT_STRIP_TRAILING_WHITESPACE)
message(STATUS ${${PROJECT_NAME}_VERSION_STRING})
execute_process(COMMAND ${GIT_EXECUTABLE} describe --always
execute_process(COMMAND ${GIT_EXECUTABLE} describe --tags
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE ${PROJECT_NAME}_VERSION_STRING_2
OUTPUT_STRIP_TRAILING_WHITESPACE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment