Skip to content

Commit

Permalink
Use single quote
Browse files Browse the repository at this point in the history
  • Loading branch information
vkedwardli committed Jan 12, 2025
1 parent c1338db commit f2e4e22
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,7 @@ endif()

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

0 comments on commit f2e4e22

Please sign in to comment.