Skip to content

Commit

Permalink
Revert "Use same regex pattern for all platforms"
Browse files Browse the repository at this point in the history
This reverts commit 3d59c81.
  • Loading branch information
vkedwardli committed Jan 12, 2025
1 parent 3d59c81 commit c1338db
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,12 @@ endif()

find_package(Git)
if(GIT_FOUND AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git")
set(GDXSV_PATTERN "gdxsv-\\*")
if(MINGW)
set(GDXSV_PATTERN "gdxsv-\\*")
else()
set(GDXSV_PATTERN """gdxsv-*""")
endif()
message(GDXSV_PATTERN="${GDXSV_PATTERN}")
execute_process(
COMMAND ${GIT_EXECUTABLE} describe --tags --always --match ${GDXSV_PATTERN}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
Expand Down

0 comments on commit c1338db

Please sign in to comment.