summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineCCompiler.cmake
diff options
context:
space:
mode:
authorZsolt Parragi <zsolt.parragi@cancellar.hu>2019-02-20 11:13:55 (GMT)
committerZsolt Parragi <zsolt.parragi@cancellar.hu>2019-05-17 17:11:34 (GMT)
commit53fbe23f3fc6a6680308bb01edc02442ca9c7a57 (patch)
treeac155708e3b06281dd575ce0374af44ec02155b5 /Modules/CMakeDetermineCCompiler.cmake
parent66efdbd21a46b63572f5de677ed126a68e524e7a (diff)
downloadCMake-53fbe23f3fc6a6680308bb01edc02442ca9c7a57.zip
CMake-53fbe23f3fc6a6680308bb01edc02442ca9c7a57.tar.gz
CMake-53fbe23f3fc6a6680308bb01edc02442ca9c7a57.tar.bz2
clang: introduce CMAKE_<lang>_COMPILER_FRONTEND_VARIANT
This variable is set to GNU on Windows when clang.exe ar clang++.exe is used, and set to MSVC for clang-cl.exe. CMAKE_<lang>_SIMULATE_ID is set to MSVC in both cases, as clang defaults to -fms-compatibility for all command lines on windows.
Diffstat (limited to 'Modules/CMakeDetermineCCompiler.cmake')
-rw-r--r--Modules/CMakeDetermineCCompiler.cmake1
1 files changed, 0 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCCompiler.cmake b/Modules/CMakeDetermineCCompiler.cmake
index 3ec534f..ffd27c0 100644
--- a/Modules/CMakeDetermineCCompiler.cmake
+++ b/Modules/CMakeDetermineCCompiler.cmake
@@ -111,7 +111,6 @@ if(NOT CMAKE_C_COMPILER_ID_RUN)
include(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerId.cmake)
CMAKE_DETERMINE_COMPILER_ID(C CFLAGS CMakeCCompilerId.c)
- CMAKE_DIAGNOSE_UNSUPPORTED_CLANG(C CC)
# Set old compiler and platform id variables.
if(CMAKE_C_COMPILER_ID STREQUAL "GNU")