mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-08 15:19:51 -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)
|
||||
IAR = IAR Systems (iar.com)
|
||||
Intel = Intel Compiler (intel.com)
|
||||
IntelDPCPP = Intel DPCPP Compiler (intel.com)
|
||||
MSVC = Microsoft Visual Studio (microsoft.com)
|
||||
NVIDIA = NVIDIA CUDA Compiler (nvidia.com)
|
||||
OpenWatcom = Open Watcom (openwatcom.org)
|
||||
|
||||
@@ -78,6 +78,7 @@ function(compiler_id_detection outvar lang)
|
||||
ARMCC
|
||||
AppleClang
|
||||
ARMClang
|
||||
IntelDPCPP
|
||||
Clang
|
||||
GNU
|
||||
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