Explorar o código

Merge topic 'ep-log-output-under-vs'

44aff73 ExternalProject: Avoid bleed-through output when logging.
Brad King %!s(int64=15) %!d(string=hai) anos
pai
achega
c39abc2411
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      Modules/ExternalProject.cmake

+ 2 - 1
Modules/ExternalProject.cmake

@@ -753,7 +753,7 @@ endif()
         set(sep ";")
       endif()
     endforeach()
-    set(code "${code}set(command \"${cmd}\")${code_execute_process}")
+    set(code "set(ENV{VS_UNICODE_OUTPUT} \"\")\n${code}set(command \"${cmd}\")${code_execute_process}")
     file(WRITE ${stamp_dir}/${name}-${step}-impl.cmake "${code}")
     set(command ${CMAKE_COMMAND} "-Dmake=\${make}" "-Dconfig=\${config}" -P ${stamp_dir}/${name}-${step}-impl.cmake)
   endif()
@@ -763,6 +763,7 @@ endif()
   set(logbase ${stamp_dir}/${name}-${step})
   file(WRITE ${script} "
 ${code_cygpath_make}
+set(ENV{VS_UNICODE_OUTPUT} \"\")
 set(command \"${command}\")
 execute_process(
   COMMAND \${command}