From 6f3a7a60eaee5c5e839147e4eca568ed5a3a2990 Mon Sep 17 00:00:00 2001 From: heinrich5991 Date: Sat, 20 Jun 2020 11:08:59 +0200 Subject: [PATCH] Fix `git_revision.cpp` updating for out-of-tree builds --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3d96d21a8..395451b81 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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