Use more descriptive versioning in gitversion.h.

This commit is contained in:
Hans-Kristian Arntzen 2024-01-23 12:01:32 +01:00
parent b82536766d
commit c3d0bd4cdb

View File

@ -77,7 +77,7 @@ set(spirv-cross-build-version "unknown")
find_package(Git)
if (GIT_FOUND)
execute_process(
COMMAND ${GIT_EXECUTABLE} rev-parse --short HEAD
COMMAND ${GIT_EXECUTABLE} describe --always --tags --dirty=+
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
OUTPUT_VARIABLE spirv-cross-build-version
ERROR_QUIET