diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2018-08-15 19:17:26 +0100 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2018-08-26 17:23:39 +0100 |
commit | 921977589a6837575ab7aadaa6238b20d0771ae2 (patch) | |
tree | 9a319fe92c80f565a94aacfb6463c36da00c3c56 /mesonbuild/dependencies/platform.py | |
parent | e75b7cdc158b9153d1791d0b2acce01f19c40f23 (diff) | |
download | meson-921977589a6837575ab7aadaa6238b20d0771ae2.zip meson-921977589a6837575ab7aadaa6238b20d0771ae2.tar.gz meson-921977589a6837575ab7aadaa6238b20d0771ae2.tar.bz2 |
Set is_found in AppleFrameworks constructor
Set is_found in AppleFrameworks constructor, rather than overriding the
found() method, as other superclass methods may access is_found.
Diffstat (limited to 'mesonbuild/dependencies/platform.py')
-rw-r--r-- | mesonbuild/dependencies/platform.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mesonbuild/dependencies/platform.py b/mesonbuild/dependencies/platform.py index 5f89ccb..e17a2f2 100644 --- a/mesonbuild/dependencies/platform.py +++ b/mesonbuild/dependencies/platform.py @@ -33,8 +33,7 @@ class AppleFrameworks(ExternalDependency): for f in self.frameworks: self.link_args += ['-framework', f] - def found(self): - return mesonlib.is_osx() + self.is_found = mesonlib.is_osx() def get_version(self): return 'unknown' |