File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,17 +30,19 @@ endif()
3030
3131include (CheckFortranSourceCompiles )
3232
33- check_fortran_source_compiles ("
34- program a
35- use, intrinsic:: ieee_arithmetic
36- end"
33+ check_fortran_source_compiles ("block; end block; end"
34+ f08block SRC_EXT f90 )
35+ if (NOT f08block)
36+ message (WARNING "f2008 BLOCK not supported by " ${CMAKE_Fortran_COMPILER_ID} )
37+ endif ()
38+
39+ check_fortran_source_compiles ("use, intrinsic:: ieee_arithmetic; end"
3740 f08ieee SRC_EXT f90 )
38-
3941if (NOT f08ieee)
40- message (FATAL_ERROR "IEEE_arithmetic not supported by your compiler" )
42+ message (FATAL_ERROR "IEEE_arithmetic not supported by " ${CMAKE_Fortran_COMPILER_ID} )
4143endif ()
4244
43- check_fortran_source_compiles ("program a; error stop; end"
45+ check_fortran_source_compiles ("error stop; end"
4446 f08errorstop SRC_EXT f90 )
4547if (NOT f08errorstop)
4648 set (f08errorstop 0)
You can’t perform that action at this time.
0 commit comments