check_fortran_source_compiles(<code> <resultVar> [FAIL_REGEX <regex>...] [SRC_EXT <extension>] )
check_fortran_source_compiles(<code> <resultVar> [FAIL_REGEX <regex>...] [SRC_EXT <extension>] )
check_fortran_source_compiles (${SOURCE_CODE} FORTRAN_HAVE_C_LONG_DOUBLE SRC_EXT f90)
CHECK_Fortran_SOURCE_COMPILES([[
module foo
interface bar
module subroutine bar_integer(x)
integer, intent(in) :: x
end subroutine
module subroutine bar_real(x)
real, intent(in) :: x
end subroutine
end interface
end module
submodule ( foo ) sub
contains
module subroutine bar_integer(x)
integer, intent(in) :: x
end subroutine
module subroutine bar_real(x)
real, intent(in) :: x
end subroutine
end submodule
program main
end program
]] ${var} SRC_EXT F90)
check_fortran_source_compiles (${SOURCE_CODE} FORTRAN_HAVE_C_LONG_DOUBLE SRC_EXT f90)
check_fortran_source_compiles (${SOURCE_CODE} FORTRAN_HAVE_C_LONG_DOUBLE SRC_EXT f90)