浏览代码

COMP: Superbuild / ExternalProject - Removed git.cmd and eg.cmd from the possible git program

If 'git.cmd' are 'eg.cmd' are used, execute_process fails and outputs
the following error:
  'chcp' is not recognized as an internal or external command,
  operable program or batch file
Jean-Christophe Fillion-Robin 15 年之前
父节点
当前提交
034216e969
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      CMake/ExternalProject.cmake

+ 3 - 1
CMake/ExternalProject.cmake

@@ -771,8 +771,10 @@ function(_ep_add_download_command name)
     list(APPEND depends ${stamp_dir}/${name}-svninfo.txt)
   elseif(git_repository)
     #find_package(Git)
+    # If 'git.cmd' are 'eg.cmd' are used, execute_process fails and outputs the following error:
+    #  'chcp' is not recognized as an internal or external command, operable program or batch file
     find_program(git_EXECUTABLE 
-      NAMES git.cmd git eg.cmd eg 
+      NAMES git eg 
       PATHS
        "C:/Program Files/Git/bin"
        "C:/Program Files (x86)/Git/bin"