فهرست منبع

Merge topic 'csharp-version-english'

04937db1 CSharp: Fix compiler version detection in non-English languages

Acked-by: Kitware Robot <[email protected]>
Merge-request: !1449
Brad King 8 سال پیش
والد
کامیت
a7347c022e
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Modules/CMakeDetermineCSharpCompiler.cmake

+ 1 - 1
Modules/CMakeDetermineCSharpCompiler.cmake

@@ -23,7 +23,7 @@ if(NOT CMAKE_CSharp_COMPILER_ID_RUN)
   include(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerId.cmake)
   CMAKE_DETERMINE_COMPILER_ID(CSharp CSFLAGS CMakeCSharpCompilerId.cs)
 
-  execute_process(COMMAND "${CMAKE_CSharp_COMPILER}" "/help" OUTPUT_VARIABLE output)
+  execute_process(COMMAND "${CMAKE_CSharp_COMPILER}" "/help /preferreduilang:en-US" OUTPUT_VARIABLE output)
   string(REPLACE "\n" ";" output "${output}")
   foreach(line ${output})
     string(TOUPPER ${line} line)