X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/71bcc9e07bd5799094b328f6dce1620efb40fdf5..2c22c271250e72c926eced42f8ff2d6f1dcb5a0b:/buildtools/Cmake/CompleteInFiles.cmake diff --git a/buildtools/Cmake/CompleteInFiles.cmake b/buildtools/Cmake/CompleteInFiles.cmake index a9bf4eaa3f..57c7461e45 100644 --- a/buildtools/Cmake/CompleteInFiles.cmake +++ b/buildtools/Cmake/CompleteInFiles.cmake @@ -349,8 +349,8 @@ endif(pthread) ############### ## SVN version check ## -if(EXISTS .git) -exec_program("git remote" OUTPUT_VARIABLE remote RETURN_VALUE ret) +if(EXISTS ${CMAKE_HOME_DIRECTORY}/.git/) +exec_program("git remote | head -n 1" OUTPUT_VARIABLE remote RETURN_VALUE ret) exec_program("git config --get remote.${remote}.url" OUTPUT_VARIABLE url RETURN_VALUE ret) if(url) @@ -363,7 +363,7 @@ if(url) STRING(REPLACE " " "~" GIT_DATE ${GIT_DATE}) STRING(REPLACE ":" "-" GIT_DATE ${GIT_DATE}) endif(url) -endif(EXISTS .git) +endif(EXISTS ${CMAKE_HOME_DIRECTORY}/.git/) ################################### ## SimGrid and GRAS specific checks