mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-12 09:08:58 -05:00
Intel: Add Intel DPC++ compiler identification
The compiler identifies itself with the `__INTEL_DPCPP_COMPILER__` preprocessor definition.
This commit is contained in:
committed by
Brad King
parent
0cb7216b9f
commit
887f3a88a6
@@ -25,6 +25,7 @@ include:
|
|||||||
HP = Hewlett-Packard Compiler (hp.com)
|
HP = Hewlett-Packard Compiler (hp.com)
|
||||||
IAR = IAR Systems (iar.com)
|
IAR = IAR Systems (iar.com)
|
||||||
Intel = Intel Compiler (intel.com)
|
Intel = Intel Compiler (intel.com)
|
||||||
|
IntelDPCPP = Intel DPCPP Compiler (intel.com)
|
||||||
MSVC = Microsoft Visual Studio (microsoft.com)
|
MSVC = Microsoft Visual Studio (microsoft.com)
|
||||||
NVIDIA = NVIDIA CUDA Compiler (nvidia.com)
|
NVIDIA = NVIDIA CUDA Compiler (nvidia.com)
|
||||||
OpenWatcom = Open Watcom (openwatcom.org)
|
OpenWatcom = Open Watcom (openwatcom.org)
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ function(compiler_id_detection outvar lang)
|
|||||||
ARMCC
|
ARMCC
|
||||||
AppleClang
|
AppleClang
|
||||||
ARMClang
|
ARMClang
|
||||||
|
IntelDPCPP
|
||||||
Clang
|
Clang
|
||||||
GNU
|
GNU
|
||||||
MSVC
|
MSVC
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
|
||||||
|
set(_compiler_id_pp_test "defined(__clang__) && defined(__INTEL_DPCPP_COMPILER__)")
|
||||||
|
|
||||||
|
include("${CMAKE_CURRENT_LIST_DIR}/Clang-DetermineCompilerInternal.cmake")
|
||||||
|
|
||||||
|
string(APPEND _compiler_id_version_compute "
|
||||||
|
# define @PREFIX@COMPILER_VERSION_TWEAK @MACRO_DEC@(__INTEL_DPCPP_COMPILER__)")
|
||||||
Reference in New Issue
Block a user