cmake check_fortran_source_runs examples

Signatures

check_fortran_source_runs(<code> <resultVar>
  [SRC_EXT <extension>])

Examples

Amber-MD/cpptraj cmake-cpptraj/ThirdPartyTools/FindNetCDF.cmake :87

check_fortran_source_runs(
"program testf
  use netcdf
  write(6,*) nf90_strerror(0)
  write(6,*) 'testing a Fortran program'
end program testf"
	NetCDF_F90_WORKS)

Tencent/Forward source/third_party/hdf5/config/cmake/HDF5UseFortran.cmake :188

check_fortran_source_runs (${PROG_SRC_CODE} FC_AVAIL_KINDS_RESULT SRC_EXT f90)

merzlab/QUICK cmake/jedbrown/FindNetCDF.cmake :87

check_fortran_source_runs(
"program testf
  use netcdf
  write(6,*) nf90_strerror(0)
  write(6,*) 'testing a Fortran program'
end program testf"
	NetCDF_F90_WORKS)