ソースを参照

Merge topic 'intel-clang'

5c3a93ab88 Intel: Add Intel Clang compiler identification

Acked-by: Kitware Robot <[email protected]>
Merge-request: !5300
Brad King 5 年 前
コミット
9fc742041b

+ 1 - 0
Help/variable/CMAKE_LANG_COMPILER_ID.rst

@@ -26,6 +26,7 @@ include:
   IAR = IAR Systems (iar.com)
   Intel = Intel Compiler (intel.com)
   IntelDPCPP = Intel DPCPP Compiler (intel.com)
+  IntelClang = Intel Clang Compiler (intel.com)
   MSVC = Microsoft Visual Studio (microsoft.com)
   NVIDIA = NVIDIA CUDA Compiler (nvidia.com)
   OpenWatcom = Open Watcom (openwatcom.org)

+ 1 - 0
Modules/CMakeCompilerIdDetection.cmake

@@ -79,6 +79,7 @@ function(compiler_id_detection outvar lang)
       AppleClang
       ARMClang
       IntelDPCPP
+      IntelClang
       Clang
       GNU
       MSVC

+ 7 - 0
Modules/Compiler/IntelClang-DetermineCompiler.cmake

@@ -0,0 +1,7 @@
+
+set(_compiler_id_pp_test "defined(__clang__) && defined(__INTEL_CLANG_COMPILER)")
+
+include("${CMAKE_CURRENT_LIST_DIR}/Clang-DetermineCompilerInternal.cmake")
+
+string(APPEND _compiler_id_version_compute "
+# define @PREFIX@COMPILER_VERSION_TWEAK @MACRO_DEC@(__INTEL_CLANG_COMPILER)")