From: unknown Date: Fri, 13 Jan 2012 15:16:21 +0000 (+0100) Subject: Don't try to use git with windows and cmake X-Git-Tag: v3_9_90~569^2~19^2~145 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/260be3c8c50c28848bd097c507a912035e336d25 Don't try to use git with windows and cmake --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 4463d3db26..3f91eaeae7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,7 +22,7 @@ string(REPLACE "${COMPILER_C_VERSION_MAJOR_MINOR}." "" COMPILER_C_VERSION_PATCH ######## ## GIT # ######## -if(EXISTS ${CMAKE_HOME_DIRECTORY}/.git/) +if(EXISTS ${CMAKE_HOME_DIRECTORY}/.git/ AND NOT WIN32) 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) @@ -36,7 +36,7 @@ if(url) STRING(REPLACE " " "~" GIT_DATE ${GIT_DATE}) STRING(REPLACE ":" "-" GIT_DATE ${GIT_DATE}) endif(url) -endif(EXISTS ${CMAKE_HOME_DIRECTORY}/.git/) +endif(EXISTS ${CMAKE_HOME_DIRECTORY}/.git/ AND NOT WIN32) ######### # CDASH #