ソースを参照

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"