Skip to content

Commit

Permalink
Merge pull request #281 from inada-s/mingw-version-test
Browse files Browse the repository at this point in the history
echo version
  • Loading branch information
inada-s authored Jan 12, 2025
2 parents e894334 + 03e13fb commit 564dba7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ endif()
find_package(Git)
if(GIT_FOUND AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git")
execute_process(
COMMAND ${GIT_EXECUTABLE} describe --tags --always --match "gdxsv-*"
COMMAND ${GIT_EXECUTABLE} describe --tags --always
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
OUTPUT_VARIABLE GIT_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE
Expand All @@ -126,6 +126,9 @@ else()
set(GIT_HASH "000000000")
endif()

message(GIT_VERSION="${GIT_VERSION}")
message(GIT_HASH="${GIT_HASH}")

if(WINDOWS_STORE)
string(REGEX REPLACE "[Vv]" "" MS_VERSION ${GIT_VERSION})
string(REPLACE "-" "." MS_VERSION ${MS_VERSION})
Expand Down

0 comments on commit 564dba7

Please sign in to comment.