diff options
author | FormerLurker <hochgebe@gmail.com> | 2020-11-23 17:39:15 +0300 |
---|---|---|
committer | FormerLurker <hochgebe@gmail.com> | 2020-11-23 17:39:15 +0300 |
commit | f2b52d935ebc81a2eb12cfd7a1c4b924cfc5ea68 (patch) | |
tree | c790f2249ef02d6bdd10dc8d44f9b3bcf58a4cdb /GcodeProcessorLib/CMakeLists.txt | |
parent | 3eda30c23a6a8f1679989e1862e6c9d815cdbd7e (diff) |
Implement #18 and #19. Fix some compiler warnings.
Diffstat (limited to 'GcodeProcessorLib/CMakeLists.txt')
-rw-r--r-- | GcodeProcessorLib/CMakeLists.txt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/GcodeProcessorLib/CMakeLists.txt b/GcodeProcessorLib/CMakeLists.txt index 21fe511..52d1d3a 100644 --- a/GcodeProcessorLib/CMakeLists.txt +++ b/GcodeProcessorLib/CMakeLists.txt @@ -20,9 +20,17 @@ execute_process( OUTPUT_STRIP_TRAILING_WHITESPACE ) +# get the tag for the current branch +execute_process( + COMMAND git describe --abbrev=0 + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} + OUTPUT_VARIABLE GIT_TAG + OUTPUT_STRIP_TRAILING_WHITESPACE +) + # get the most recent tagged version execute_process( - COMMAND git describe --tags + COMMAND git describe WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} OUTPUT_VARIABLE GIT_TAGGED_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE |