Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
Spack
Commits
14acfb65
Commit
14acfb65
authored
6 years ago
by
Dustin Lagoy
Committed by
Peter Scheibel
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
netcdf-cxx package: Add optional netCDF4 support (#10899)
parent
57523c3f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
var/spack/repos/builtin/packages/netcdf-cxx/package.py
+11
-0
11 additions, 0 deletions
var/spack/repos/builtin/packages/netcdf-cxx/package.py
with
11 additions
and
0 deletions
var/spack/repos/builtin/packages/netcdf-cxx/package.py
+
11
−
0
View file @
14acfb65
...
@@ -19,9 +19,20 @@ class NetcdfCxx(AutotoolsPackage):
...
@@ -19,9 +19,20 @@ class NetcdfCxx(AutotoolsPackage):
depends_on
(
'
netcdf
'
)
depends_on
(
'
netcdf
'
)
variant
(
'
netcdf4
'
,
default
=
True
,
description
=
'
Compile with netCDF4 support
'
)
@property
@property
def
libs
(
self
):
def
libs
(
self
):
shared
=
True
shared
=
True
return
find_libraries
(
return
find_libraries
(
'
libnetcdf_c++
'
,
root
=
self
.
prefix
,
shared
=
shared
,
recursive
=
True
'
libnetcdf_c++
'
,
root
=
self
.
prefix
,
shared
=
shared
,
recursive
=
True
)
)
def
configure_args
(
self
):
args
=
[]
if
'
+netcdf4
'
in
self
.
spec
:
# There is no clear way to set this via configure, so set the flag
# explicitly
args
.
append
(
'
CPPFLAGS=-DUSE_NETCDF4
'
)
return
args
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment