From 0ec91dcc9626c39dc6309519afa4e67fc976b67e Mon Sep 17 00:00:00 2001 From: Alex Richert Date: Tue, 22 Oct 2024 13:27:24 -0700 Subject: [PATCH] add flags for oneapi --- CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5180776..ca7f6c0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -66,15 +66,18 @@ endif() include(GNUInstallDirs) message(STATUS "Setting compiler flags...") -if(CMAKE_C_COMPILER_ID MATCHES "^(Intel)$") +if(CMAKE_C_COMPILER_ID MATCHES "^(Intel|IntelLLVM)$") set(CMAKE_C_FLAGS "-g -traceback ${CMAKE_C_FLAGS} -DIFORT") + if(CMAKE_C_COMPILER_ID MATCHES "^(IntelLLVM)$") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Rno-debug-disables-optimization") + endif() set(CMAKE_C_FLAGS_DEBUG "-O0") elseif(CMAKE_C_COMPILER_ID MATCHES "^(GNU)$") set(CMAKE_C_FLAGS "-g ${CMAKE_C_FLAGS} -DGFORTRAN") set(CMAKE_C_FLAGS_DEBUG "-O0") endif() -if(CMAKE_Fortran_COMPILER_ID MATCHES "^(Intel)$") +if(CMAKE_Fortran_COMPILER_ID MATCHES "^(Intel|IntelLLVM)$") set(CMAKE_Fortran_FLAGS "-g -traceback ${CMAKE_Fortran_FLAGS}") set(CMAKE_Fortran_FLAGS_DEBUG "-O0") elseif(CMAKE_Fortran_COMPILER_ID MATCHES "^(GNU)$")