cmake check_fortran_source_compiles(F90) examples

ornladios/ADIOS2 cmake/ADIOSFunctions.cmake :215

  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)

ornladios/ADIOS2 cmake/DetectOptions.cmake :280

check_fortran_source_compiles("
  program testargs
    integer :: n
    character(len=256) :: v
    n = command_argument_count()
    call get_command_argument(0, v)
  end program testargs"
  ADIOS2_HAVE_FORTRAN_F03_ARGS
  SRC_EXT F90
)

ornladios/ADIOS2 cmake/DetectOptions.cmake :290

check_fortran_source_compiles("
  program testargs
    integer :: n
    character(len=256) :: v
    n = iargc()
    call getarg(0, v)
  end program testargs"
  ADIOS2_HAVE_FORTRAN_GNU_ARGS
  SRC_EXT F90
)