Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
vkedwardli committed Jan 12, 2025
1 parent 39b166f commit e0690ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ endif()

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

0 comments on commit e0690ba

Please sign in to comment.