Committing updates.

This commit is contained in:
Преподобный Ален
2024-09-24 13:48:52 +03:00
parent 1d540ffd23
commit a3459d370d
3 changed files with 11 additions and 2 deletions

View File

@@ -1,14 +1,14 @@
find_package(Git)
if (GIT_FOUND)
message(STATUS "Found Git")
if (EXISTS .git)
if (EXISTS ../.git)
execute_process(
COMMAND ${GIT_EXECUTABLE} rev-parse --short HEAD
OUTPUT_VARIABLE GIT_REVISION
OUTPUT_STRIP_TRAILING_WHITESPACE
)
else()
message(STATUS "Git not found!")
set(GIT_REVISION "e00000")
endif()
endif()