Skip to content

Commit

Permalink
fix(build): Fix git version parsing (#193)
Browse files Browse the repository at this point in the history
Fix an issue with reading git tags that would always result in a (dev) version
  • Loading branch information
sfoster1 authored Jul 12, 2021
1 parent fc423ee commit 752aaae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .python-version

This file was deleted.

2 changes: 1 addition & 1 deletion stm32-modules/heater-shaker/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if (NOT TAGNAME)
endif()

string(REGEX MATCH "@.*$" PREPENDED_VERSION ${TAGNAME})
string(SUBSTRING ${PREPENDED_VERSION} 1 -l VERSION)
string(SUBSTRING "${PREPENDED_VERSION}" 1 -1 VERSION)
if (NOT VERSION)
set(VERSION "(dev)")
endif()
Expand Down

0 comments on commit 752aaae

Please sign in to comment.