summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineCSharpCompiler.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-07-11 13:50:30 (GMT)
committerBrad King <brad.king@kitware.com>2019-07-11 13:50:30 (GMT)
commitd1f38ba65d7a6860ceac0d60dc77971e9ccfdd05 (patch)
tree643fd8ed3e632cf2bb8311c1a53639600c533b30 /Modules/CMakeDetermineCSharpCompiler.cmake
parente15314420c8ccf08e7855a0400a3ce76bddff95e (diff)
downloadCMake-d1f38ba65d7a6860ceac0d60dc77971e9ccfdd05.zip
CMake-d1f38ba65d7a6860ceac0d60dc77971e9ccfdd05.tar.gz
CMake-d1f38ba65d7a6860ceac0d60dc77971e9ccfdd05.tar.bz2
CMakeDetermineCompilerId: Consider UTF-16 encodings of INFO strings
Our compiler identification source encodes `INFO:compiler[...]` and similar strings in compiled objects or binaries that we then extract to get information about the compiler. With most compilers the strings are encoded in the binaries as a simple byte sequence. However, some compilers use other encodings. For example, the MS CSharp compiler uses UTF-16LE and a TI compiler uses UTF-16BE. Try each encoding. Fixes: #19459
Diffstat (limited to 'Modules/CMakeDetermineCSharpCompiler.cmake')
-rw-r--r--Modules/CMakeDetermineCSharpCompiler.cmake1
1 files changed, 0 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCSharpCompiler.cmake b/Modules/CMakeDetermineCSharpCompiler.cmake
index dab9414..da860a8 100644
--- a/Modules/CMakeDetermineCSharpCompiler.cmake
+++ b/Modules/CMakeDetermineCSharpCompiler.cmake
@@ -18,7 +18,6 @@ if(NOT CMAKE_CSharp_COMPILER_ID_RUN)
set(CMAKE_CSharp_COMPILER_ID_RUN 1)
# Try to identify the compiler.
- set(CMAKE_CSharp_COMPILER_ID_STRINGS_PARAMETERS ENCODING UTF-16LE)
set(CMAKE_CSharp_COMPILER_ID)
include(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerId.cmake)
CMAKE_DETERMINE_COMPILER_ID(CSharp CSFLAGS CMakeCSharpCompilerId.cs)