aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/dependencies/misc.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/dependencies/misc.py b/mesonbuild/dependencies/misc.py
index 7088697..88f64e0 100644
--- a/mesonbuild/dependencies/misc.py
+++ b/mesonbuild/dependencies/misc.py
@@ -61,6 +61,8 @@ class NetCDFDependency(ExternalDependency):
self.version = pkgdep.get_version()
self.is_found = True
self.pcdep.append(pkgdep)
+ if self.is_found:
+ return
if set([DependencyMethods.AUTO, DependencyMethods.CMAKE]).intersection(methods):
cmakedep = CMakeDependency('NetCDF', environment, kwargs, language=self.language)