summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-11-07 13:24:29 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-11-07 13:31:09 (GMT)
commita7347c022eb67272eea7dca5a58d0b94806b7d95 (patch)
treee265ca48cc1e8eb040a17ef0065942f56e267940
parentfcb39aaa19360ae9096f2f2567e3afb1630cc370 (diff)
parent04937db103541da442a426818c9314a423235858 (diff)
downloadCMake-a7347c022eb67272eea7dca5a58d0b94806b7d95.zip
CMake-a7347c022eb67272eea7dca5a58d0b94806b7d95.tar.gz
CMake-a7347c022eb67272eea7dca5a58d0b94806b7d95.tar.bz2
Merge topic 'csharp-version-english'
04937db1 CSharp: Fix compiler version detection in non-English languages Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1449
-rw-r--r--Modules/CMakeDetermineCSharpCompiler.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCSharpCompiler.cmake b/Modules/CMakeDetermineCSharpCompiler.cmake
index 55b2fb3..eb825a5 100644
--- a/Modules/CMakeDetermineCSharpCompiler.cmake
+++ b/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)