[CMAKE] Add "--always" parameter to "git describe" call

"fatal: No names found, cannot describe anything." message,
when called without enough history, i.e. appveyor.yml "clone_depth: 5".
This commit is contained in:
Serge Gautherie 2018-05-29 16:02:26 +02:00 committed by Mark Jansen
parent 76a73b4295
commit 9822462946

View file

@ -39,7 +39,7 @@ if(EXISTS "${REACTOS_SOURCE_DIR}/.git")
endif()
execute_process(
COMMAND "${GIT_EXECUTABLE}" describe --abbrev=7 --long
COMMAND "${GIT_EXECUTABLE}" describe --abbrev=7 --long --always
WORKING_DIRECTORY ${REACTOS_SOURCE_DIR}
OUTPUT_VARIABLE GIT_DESCRIBE_REVISION
RESULT_VARIABLE GIT_CALL_RESULT