From 54ca36d00cd78042d6706ad8249cbc18d881e5e6 Mon Sep 17 00:00:00 2001 From: "Kelly (KT) Thompson" Date: Sat, 25 Sep 2021 19:48:46 -0600 Subject: [PATCH] Help CMake differentiate bewteen Clang, IntelLLVM and CCELLVM. (#1138) --- config/unix-clang.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/unix-clang.cmake b/config/unix-clang.cmake index a191a37e9..704de0ddc 100644 --- a/config/unix-clang.cmake +++ b/config/unix-clang.cmake @@ -62,7 +62,7 @@ if(NOT CXX_FLAGS_INITIALIZED) # OneAPI on trinitite reports itself as "LLVM" and parses this file. The Intel optimizer needs # these options to maintain IEEE 754 compliance. - if(CMAKE_CXX_COMPILER_WRAPPER STREQUAL CrayPrgEnv) + if(CMAKE_CXX_COMPILER_WRAPPER STREQUAL CrayPrgEnv AND INTEL_COMPILER_TYPE STREQUAL "ONEAPI") string(APPEND CMAKE_C_FLAGS_RELEASE " -fp-model=precise") string(APPEND CMAKE_C_FLAGS_RELWITHDEBINFO " -fp-model=precise") endif()