summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorChris Marsh <chrismarsh.c2@gmail.com>2024-03-22 17:05:17 -0600
committerGitHub <noreply@github.com>2024-03-22 16:05:17 -0700
commit2967804da15fe1ca9eda436381298508b0658ed7 (patch)
treedd3fc16fa4ce447bf06b04e9cb6bc95c88553778 /var
parentc3eaf4d6cf46e5d9387db851d5dcee113f058710 (diff)
downloadspack-2967804da15fe1ca9eda436381298508b0658ed7.tar.gz
spack-2967804da15fe1ca9eda436381298508b0658ed7.tar.bz2
spack-2967804da15fe1ca9eda436381298508b0658ed7.tar.xz
spack-2967804da15fe1ca9eda436381298508b0658ed7.zip
netcdf-cxx4: fix reference error (#43322)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/netcdf-cxx4/package.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/netcdf-cxx4/package.py b/var/spack/repos/builtin/packages/netcdf-cxx4/package.py
index 5bdfabaf62..046c17a3fc 100644
--- a/var/spack/repos/builtin/packages/netcdf-cxx4/package.py
+++ b/var/spack/repos/builtin/packages/netcdf-cxx4/package.py
@@ -50,7 +50,7 @@ class NetcdfCxx4(CMakePackage):
@property
def libs(self):
libraries = ["libnetcdf_c++4"]
- shared = "+shared" in spec
+ shared = "+shared" in self.spec
libs = find_libraries(libraries, root=self.prefix, shared=shared, recursive=True)
if libs: