|
|
@ -15,11 +15,13 @@ if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git")
|
|
|
|
COMMAND git describe --always
|
|
|
|
COMMAND git describe --always
|
|
|
|
OUTPUT_VARIABLE GIT_COMMIT_HASH
|
|
|
|
OUTPUT_VARIABLE GIT_COMMIT_HASH
|
|
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
|
|
|
|
|
|
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
execute_process(
|
|
|
|
execute_process(
|
|
|
|
COMMAND git rev-parse --abbrev-ref HEAD
|
|
|
|
COMMAND git rev-parse --abbrev-ref HEAD
|
|
|
|
OUTPUT_VARIABLE GIT_BRANCH
|
|
|
|
OUTPUT_VARIABLE GIT_BRANCH
|
|
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
|
|
|
|
|
|
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
endif(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git")
|
|
|
|
endif(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git")
|
|
|
|
|
|
|
|
|
|
|
|