diff --git a/CMakeLists.txt b/CMakeLists.txt index 68ca3905b..ff6372b82 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 @@ -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})