Committing updates.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user