mirror of
https://github.com/reactos/CMake.git
synced 2025-01-21 02:45:05 +00:00
CSharp: Fix compiler version detection in non-English languages
When we run `csc.exe /help` we look for "Version" in the output. Explicitly ask for the output in English. Reported-by: guttally@users.noreply.github.com
This commit is contained in:
parent
a91eb5e41f
commit
04937db103
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user