Skip to content

Commit

Permalink
Workaround for CMake.
Browse files Browse the repository at this point in the history
  • Loading branch information
klei1984 committed Jul 19, 2024
1 parent 5b4ac3e commit 30c9e49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/setup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if(Git_FOUND)
set(GAME_VERSION_MAJOR ${CMAKE_MATCH_1})
set(GAME_VERSION_MINOR ${CMAKE_MATCH_2})
set(GAME_VERSION_PATCH ${CMAKE_MATCH_3})
set(GAME_VERSION_STRING "${GAME_VERSION_MAJOR}.${GAME_VERSION_MINOR}.${GAME_VERSION_PATCH}")
set(GAME_VERSION_STRING "${GAME_VERSION_MAJOR}.${GAME_VERSION_MINOR}.${GAME_VERSION_PATCH} ")
else()
string(REGEX MATCH "^([a-fA-F0-9]+)$" GIT_MATCHES "${GIT_OUTPUT}")
if(CMAKE_MATCH_COUNT EQUAL 1)
Expand All @@ -46,7 +46,7 @@ else()
set(GAME_VERSION_MAJOR "0")
set(GAME_VERSION_MINOR "7")
set(GAME_VERSION_PATCH "0")
set(GAME_VERSION_STRING "${GAME_VERSION_MAJOR}.${GAME_VERSION_MINOR}.${GAME_VERSION_PATCH}")
set(GAME_VERSION_STRING "${GAME_VERSION_MAJOR}.${GAME_VERSION_MINOR}.${GAME_VERSION_PATCH} ")
endif()

message(STATUS "Set build version to v${GAME_VERSION_STRING}")

0 comments on commit 30c9e49

Please sign in to comment.