diff options
author | FormerLurker <hochgebe@gmail.com> | 2020-11-28 20:03:07 +0300 |
---|---|---|
committer | FormerLurker <hochgebe@gmail.com> | 2020-11-28 20:03:07 +0300 |
commit | 0a1093ce5d12e85e5ea229f5d36da5bf4472feb2 (patch) | |
tree | 204dfe5a53a12803afc1b501eeebec607b12d07c /GcodeProcessorLib | |
parent | af8ed910df9a542cb6b1585bcf03a276af16a714 (diff) |
Add --tags OPTION
Diffstat (limited to 'GcodeProcessorLib')
-rw-r--r-- | GcodeProcessorLib/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/GcodeProcessorLib/CMakeLists.txt b/GcodeProcessorLib/CMakeLists.txt index 84629f8..41b729e 100644 --- a/GcodeProcessorLib/CMakeLists.txt +++ b/GcodeProcessorLib/CMakeLists.txt @@ -22,7 +22,7 @@ execute_process( # get the tag for the current branch execute_process( - COMMAND git describe --abbrev=0 + COMMAND git describe --abbrev=0 --tags WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} OUTPUT_VARIABLE GIT_TAG OUTPUT_STRIP_TRAILING_WHITESPACE @@ -30,7 +30,7 @@ execute_process( # get the most recent tagged version execute_process( - COMMAND git describe + COMMAND git describe --tags WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} OUTPUT_VARIABLE GIT_TAGGED_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE |