Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Test git version only on a git repository.
authorNavarrop <Pierre.Navarro@imag.fr>
Wed, 5 Oct 2011 13:36:26 +0000 (15:36 +0200)
committerNavarrop <Pierre.Navarro@imag.fr>
Wed, 5 Oct 2011 13:36:39 +0000 (15:36 +0200)
buildtools/Cmake/CompleteInFiles.cmake

index 465e61b..a9bf4ea 100644 (file)
@@ -349,6 +349,7 @@ endif(pthread)
 ###############
 ## SVN version check
 ##
+if(EXISTS .git)
 exec_program("git remote" OUTPUT_VARIABLE remote RETURN_VALUE ret)
 exec_program("git config --get remote.${remote}.url" OUTPUT_VARIABLE url RETURN_VALUE ret)
 
@@ -362,7 +363,7 @@ if(url)
        STRING(REPLACE " " "~" GIT_DATE ${GIT_DATE})
        STRING(REPLACE ":" "-" GIT_DATE ${GIT_DATE})
 endif(url)
-
+endif(EXISTS .git)
 
 ###################################
 ## SimGrid and GRAS specific checks