Skip to content

Commit

Permalink
fix #390
Browse files Browse the repository at this point in the history
Signed-off-by: Martin <[email protected]>
  • Loading branch information
Ho-Ro committed Dec 28, 2023
1 parent 1c3a681 commit b5e1aee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ if (GIT_EXECUTABLE AND EXISTS "${CMAKE_SOURCE_DIR}/.git")
# devdrop or release?
string(FIND ${VERSION} "devdrop-0-g" DEVDROP_POS)
string(FIND ${VERSION} "-0-g" ZERO_POS)
if( ${DEVDROP_POS} EQUAL 0 ) # "devdrop-x.y.z-p-gxxxxxxx(-dirty)"
if( ${DEVDROP_POS} EQUAL 0 ) # "x.y.z-p-gxxxxxxx(-dirty)-devdrop"
execute_process(
COMMAND ${GIT_EXECUTABLE} describe --long --dirty
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE
)
set( VERSION "devdrop-${VERSION}" )
set( VERSION "${VERSION}-devdrop" )
elseif( ${ZERO_POS} GREATER 0 ) # x.y.z(-dirty)
# message(STATUS "TAG")
execute_process(
Expand Down

0 comments on commit b5e1aee

Please sign in to comment.