diff options
author | Harini Chilamantula <harini.chilamantula@intel.com> | 2020-09-29 20:30:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-09-29 21:00:43 (GMT) |
commit | 5c3a93ab88e80d1387c861bfbdcb8cb72a828f36 (patch) | |
tree | be2d61b49789590b60cbab34e33a1c22981cf75e /Modules | |
parent | af048185b1b4c20ddda2998e448c81449b803944 (diff) | |
download | CMake-5c3a93ab88e80d1387c861bfbdcb8cb72a828f36.zip CMake-5c3a93ab88e80d1387c861bfbdcb8cb72a828f36.tar.gz CMake-5c3a93ab88e80d1387c861bfbdcb8cb72a828f36.tar.bz2 |
Intel: Add Intel Clang compiler identification
The compiler identifies itself with the `__INTEL_CLANG_COMPILER`
preprocessor definition.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CMakeCompilerIdDetection.cmake | 1 | ||||
-rw-r--r-- | Modules/Compiler/IntelClang-DetermineCompiler.cmake | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/Modules/CMakeCompilerIdDetection.cmake b/Modules/CMakeCompilerIdDetection.cmake index 176e768..26fb381 100644 --- a/Modules/CMakeCompilerIdDetection.cmake +++ b/Modules/CMakeCompilerIdDetection.cmake @@ -79,6 +79,7 @@ function(compiler_id_detection outvar lang) AppleClang ARMClang IntelDPCPP + IntelClang Clang GNU MSVC diff --git a/Modules/Compiler/IntelClang-DetermineCompiler.cmake b/Modules/Compiler/IntelClang-DetermineCompiler.cmake new file mode 100644 index 0000000..3544be3 --- /dev/null +++ b/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)") |