Skip to content

Commit

Permalink
remove dirty tag from MSVC
Browse files Browse the repository at this point in the history
Signed-off-by: Martin <Ho-Ro@users.noreply.github.com>
  • Loading branch information
Ho-Ro committed Dec 17, 2023
1 parent 814886e commit 49e0efe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeListsMSVC.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if (GIT_EXECUTABLE AND EXISTS "${CMAKE_SOURCE_DIR}/.git")
# delete the unstable tag ...
# COMMAND ${GIT_EXECUTABLE} tag -d unstable
# ... to get the real versioned tag
COMMAND ${GIT_EXECUTABLE} describe --dirty
COMMAND ${GIT_EXECUTABLE} describe
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE
Expand All @@ -34,7 +34,7 @@ if (GIT_EXECUTABLE AND EXISTS "${CMAKE_SOURCE_DIR}/.git")
else() # unstable
# add commit hash to version
execute_process(
COMMAND ${GIT_EXECUTABLE} describe --long --dirty
COMMAND ${GIT_EXECUTABLE} describe --long
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE
Expand Down

0 comments on commit 49e0efe

Please sign in to comment.