Fix out of tree build.

Tell git to look in the source dir for the repository.
This commit is contained in:
Roel Aaij 2014-03-30 15:35:24 +02:00 committed by Gregory Hainaut
parent ec0f9e49c3
commit 9d1840e37a
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ endfunction(detectOperatingSystem)
function(write_svnrev_h)
if (GIT_FOUND)
execute_process(COMMAND git show -s --format=%ci HEAD
execute_process(COMMAND git -C ${CMAKE_SOURCE_DIR} show -s --format=%ci HEAD
OUTPUT_VARIABLE tmpvar_WC_INFO
OUTPUT_STRIP_TRAILING_WHITESPACE)
# %2014-03-25 16:36:29 +0100