Skip to content

Commit 6dc9695

Browse files
committed
return on errors
1 parent 290ecc5 commit 6dc9695

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/metapackage/fpm_meta_netcdf.f90

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,15 @@ subroutine init_netcdf(this, compiler, error)
3939

4040
if (.not. pkgcfg_has_package('netcdf')) then
4141
call fatal_error(error, 'pkg-config could not find a suitable netcdf package.')
42+
return
4243
end if
4344
call add_pkg_config_compile_options(this, 'netcdf', include_flag, libdir, error)
4445
if (allocated(error)) return
4546

4647
if (.not. pkgcfg_has_package('netcdf-fortran')) then
4748
call fatal_error(error, &
4849
'pkg-config could not find a suitable netcdf-fortran package.')
50+
return
4951
end if
5052
call add_pkg_config_compile_options(this, 'netcdf-fortran', include_flag, libdir, error)
5153
if (allocated(error)) return

0 commit comments

Comments
 (0)