diff options
author | Michael Hirsch, Ph.D <scivision@users.noreply.github.com> | 2020-01-07 23:47:11 -0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2020-01-08 18:59:48 +0200 |
commit | ff822990d1af6ff6c6f7ae3f2efa9012d4b14bf9 (patch) | |
tree | a0d73b0422dd749a4eb459af7d872ab75332f22a /mesonbuild | |
parent | cb262ab4816b8e8a47550994e0ba8869edf5c0ed (diff) | |
download | meson-ff822990d1af6ff6c6f7ae3f2efa9012d4b14bf9.zip meson-ff822990d1af6ff6c6f7ae3f2efa9012d4b14bf9.tar.gz meson-ff822990d1af6ff6c6f7ae3f2efa9012d4b14bf9.tar.bz2 |
bugfix: hdf5 depenedency: make sure variable is always defined
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/dependencies/hdf5.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/dependencies/hdf5.py b/mesonbuild/dependencies/hdf5.py index b270f58..3bb1fda 100644 --- a/mesonbuild/dependencies/hdf5.py +++ b/mesonbuild/dependencies/hdf5.py @@ -37,9 +37,9 @@ class HDF5Dependency(ExternalDependency): raise DependencyException('Language {} is not supported with HDF5.'.format(language)) if set([DependencyMethods.AUTO, DependencyMethods.PKGCONFIG]).intersection(methods): + pkgconfig_files = ['hdf5', 'hdf5-serial'] PCEXE = shutil.which('pkg-config') if PCEXE: - pkgconfig_files = ['hdf5', 'hdf5-serial'] # some distros put hdf5-1.2.3.pc with version number in .pc filename. ret = subprocess.run([PCEXE, '--list-all'], stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, universal_newlines=True) |