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/Compiler | |
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/Compiler')
-rw-r--r-- | Modules/Compiler/IntelClang-DetermineCompiler.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
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)") |