2287: Fix `git_revision.cpp` updating for out-of-tree builds r=def- a=heinrich5991



Co-authored-by: heinrich5991 <heinrich5991@gmail.com>
This commit is contained in:
bors[bot] 2020-06-20 09:20:03 +00:00 committed by GitHub
commit ff705a3a4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -635,6 +635,7 @@ endfunction()
file(MAKE_DIRECTORY "${PROJECT_BINARY_DIR}/src/game/generated/")
execute_process(COMMAND git rev-parse --git-dir
ERROR_QUIET
WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}"
OUTPUT_VARIABLE PROJECT_GIT_DIR
OUTPUT_STRIP_TRAILING_WHITESPACE
RESULT_VARIABLE PROJECT_GIT_DIR_ERROR