Skip to content
Snippets Groups Projects
Commit 50c47de0 authored by Oriol Tintó's avatar Oriol Tintó
Browse files

Add netcdf-fortran dependency into configure options.

parent 673d5171
No related branches found
No related tags found
No related merge requests found
Pipeline #18942 failed
......@@ -45,6 +45,7 @@ class DwdIconTools(Package):
version("2.5.2", branch="icontools-2.5.2")
depends_on("netcdf-c")
depends_on("netcdf-fortran")
depends_on("eccodes")
depends_on("libxml2")
#
......@@ -79,8 +80,10 @@ class DwdIconTools(Package):
# "F77": spec["mpi"].mpif77,
"CXXFLAGS": "-O2 -g -fopenmp -Wunused -DNOMPI",
"FCFLAGS": "-I/usr/include --std=f2008 -O2 -g -cpp -fopenmp -fbounds-check -Wunused -DNOMPI",
"LIBS": f"-L{spec['libxml2'].prefix.lib} -leccodes -lgfortran -lhdf5 -lxml2",
"LIBS": f"-L{spec['libxml2'].prefix.lib} -L{spec['netcdf-c'].prefix.lib} -lnetcdf -L{spec['netcdf-fortran'].prefix.lib} -lnetcdff -leccodes -lgfortran -lhdf5 -lxml2",
}
for variable, value in env_variables_to_set.items():
env.set(variable, value)
......@@ -91,7 +94,8 @@ class DwdIconTools(Package):
f"--prefix={prefix}",
"--enable-grib2",
"--enable-iso-c-interface",
f"--with-netcdf={spec['netcdf-c'].prefix}"
f"--with-netcdf={spec['netcdf-c'].prefix}",
"LIBS": f"-L{spec['libxml2'].prefix.lib} -leccodes -lgfortran -lhdf5 -lxml2",
]
configure(*options)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment