From 977bef3c888431d790bb062773da458165b54031 Mon Sep 17 00:00:00 2001 From: Miroslav Stoyanov Date: Mon, 21 Oct 2024 13:27:53 -0400 Subject: [PATCH] ifx support --- Config/CMakeIncludes/sanity_check_and_xsdk.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Config/CMakeIncludes/sanity_check_and_xsdk.cmake b/Config/CMakeIncludes/sanity_check_and_xsdk.cmake index f3de83b41..5d271c838 100644 --- a/Config/CMakeIncludes/sanity_check_and_xsdk.cmake +++ b/Config/CMakeIncludes/sanity_check_and_xsdk.cmake @@ -46,7 +46,12 @@ endif() # check for Fortran, note that enable_language always gives FATAL_ERROR if the compiler is missing if (Tasmanian_ENABLE_FORTRAN) enable_language(Fortran) + # check old and new Fortran compilers Tasmanian_compiler_type(COMPILER ${CMAKE_Fortran_COMPILER} TYPE "ifort" RESULT Tasmanian_ifort_compiler) + Tasmanian_compiler_type(COMPILER ${CMAKE_Fortran_COMPILER} TYPE "ifx" RESULT Tasmanian_ifx_compiler) + if (Tasmanian_ifort_compiler OR Tasmanian_ifx_compiler) + set(Tasmanian_ifort_compiler ON) + endif() endif() # swig requires Fortran and cannot handle both types of libs