Added a version id, the current git hash

This commit is contained in:
Alexandre 2026-04-23 08:28:02 +02:00
parent a05df4d541
commit 04763de733

View File

@ -1,9 +1,8 @@
find_package(Git)
if (GIT_FOUND)
message("Found git !")
execute_process(
COMMAND ${GIT_EXECUTABLE} describe --tags --allways
COMMAND ${GIT_EXECUTABLE} describe --tags --always
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE ENGINE_VERSION
RESULT_VARIABLE GIT_DESCRIBE_ERROR_CODE