summaryrefslogtreecommitdiffstats
path: root/config/toolchain/intel.cmake
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-03-19 15:57:10 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-03-19 15:57:21 (GMT)
commit13da6d137fa2f00cc5363414b39e441c19140b81 (patch)
tree117e8d59c97e1b606a1b2378a115125017bf8054 /config/toolchain/intel.cmake
parent26fecb8c5a444c64106c36750addfc9d71338c1d (diff)
downloadhdf5-13da6d137fa2f00cc5363414b39e441c19140b81.zip
hdf5-13da6d137fa2f00cc5363414b39e441c19140b81.tar.gz
hdf5-13da6d137fa2f00cc5363414b39e441c19140b81.tar.bz2
Allow use of INTEL icl/icl++ for clang
Diffstat (limited to 'config/toolchain/intel.cmake')
-rw-r--r--config/toolchain/intel.cmake13
1 files changed, 10 insertions, 3 deletions
diff --git a/config/toolchain/intel.cmake b/config/toolchain/intel.cmake
index 97f6a64..ae1d2f8 100644
--- a/config/toolchain/intel.cmake
+++ b/config/toolchain/intel.cmake
@@ -3,9 +3,16 @@
set(CMAKE_COMPILER_VENDOR "intel")
-set(CMAKE_C_COMPILER icc)
-set(CMAKE_CXX_COMPILER icpc)
-set(CMAKE_Fortran_COMPILER ifort)
+if(USE_SANITIZER)
+ set(CMAKE_C_COMPILER icl)
+ set(CMAKE_CXX_COMPILER icl++)
+ set(CMAKE_Fortran_COMPILER ifort)
+ set(INTEL_CLANG ON)
+else ()
+ set(CMAKE_C_COMPILER icc)
+ set(CMAKE_CXX_COMPILER icpc)
+ set(CMAKE_Fortran_COMPILER ifort)
+endif ()
# the following is used if cross-compiling
set(CMAKE_CROSSCOMPILING_EMULATOR "")