Просмотр исходного кода

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
Родитель
Сommit
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"