mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-21 14:40:26 -06:00
Intel: Add Intel Clang compiler identification
The compiler identifies itself with the `__INTEL_CLANG_COMPILER` preprocessor definition.
This commit is contained in:
committed by
Brad King
parent
af048185b1
commit
5c3a93ab88
@@ -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)
|
||||
|
||||
@@ -79,6 +79,7 @@ function(compiler_id_detection outvar lang)
|
||||
AppleClang
|
||||
ARMClang
|
||||
IntelDPCPP
|
||||
IntelClang
|
||||
Clang
|
||||
GNU
|
||||
MSVC
|
||||
|
||||
7
Modules/Compiler/IntelClang-DetermineCompiler.cmake
Normal file
7
Modules/Compiler/IntelClang-DetermineCompiler.cmake
Normal file
@@ -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)")
|
||||
Reference in New Issue
Block a user