diff options
Diffstat (limited to 'config/toolchain/intel.cmake')
-rw-r--r-- | config/toolchain/intel.cmake | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/config/toolchain/intel.cmake b/config/toolchain/intel.cmake new file mode 100644 index 0000000..ae1d2f8 --- /dev/null +++ b/config/toolchain/intel.cmake @@ -0,0 +1,18 @@ +# Uncomment the following to use cross-compiling +#set(CMAKE_SYSTEM_NAME Linux) + +set(CMAKE_COMPILER_VENDOR "intel") + +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 "") |