Skip to content

Commit b553463

Browse files
authored
Merge pull request #783 from mkstoyanov/fix_ifx_compiler
* updated support for the Intel ifx Fortran compiler
2 parents ba42064 + 977bef3 commit b553463

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Config/CMakeIncludes/sanity_check_and_xsdk.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,12 @@ endif()
4646
# check for Fortran, note that enable_language always gives FATAL_ERROR if the compiler is missing
4747
if (Tasmanian_ENABLE_FORTRAN)
4848
enable_language(Fortran)
49+
# check old and new Fortran compilers
4950
Tasmanian_compiler_type(COMPILER ${CMAKE_Fortran_COMPILER} TYPE "ifort" RESULT Tasmanian_ifort_compiler)
51+
Tasmanian_compiler_type(COMPILER ${CMAKE_Fortran_COMPILER} TYPE "ifx" RESULT Tasmanian_ifx_compiler)
52+
if (Tasmanian_ifort_compiler OR Tasmanian_ifx_compiler)
53+
set(Tasmanian_ifort_compiler ON)
54+
endif()
5055
endif()
5156

5257
# swig requires Fortran and cannot handle both types of libs

0 commit comments

Comments
 (0)