Msg for sha1 searching in cmake
This commit is contained in:
@@ -4,10 +4,12 @@ include (CheckFunctionExists)
|
|||||||
project (task)
|
project (task)
|
||||||
set (PROJECT_VERSION "1.9.4")
|
set (PROJECT_VERSION "1.9.4")
|
||||||
|
|
||||||
|
message ("-- Looking for SHA1 references")
|
||||||
if (EXISTS .git/index)
|
if (EXISTS .git/index)
|
||||||
set (HAVE_COMMIT true)
|
set (HAVE_COMMIT true)
|
||||||
execute_process (COMMAND git log -1 --pretty=format:%h
|
execute_process (COMMAND git log -1 --pretty=format:%h
|
||||||
OUTPUT_VARIABLE COMMIT)
|
OUTPUT_VARIABLE COMMIT)
|
||||||
|
message ("-- Found SHA1 reference: ${COMMIT}")
|
||||||
endif (EXISTS .git/index)
|
endif (EXISTS .git/index)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user