wxwidgets: Don't error out if dependency is not required (#606)

pull/609/head
Nirbheek Chauhan 9 years ago committed by Jussi Pakkanen
parent 7c90beefde
commit cd509043e0
  1. 7
      mesonbuild/dependencies.py

@ -256,12 +256,13 @@ class WxDependency(Dependency):
def __init__(self, environment, kwargs): def __init__(self, environment, kwargs):
Dependency.__init__(self) Dependency.__init__(self)
self.is_found = False
if WxDependency.wx_found is None: if WxDependency.wx_found is None:
self.check_wxconfig() self.check_wxconfig()
if not WxDependency.wx_found: if not WxDependency.wx_found:
raise DependencyException('Wx-config not found.') mlog.log("Neither wx-config-3.0 nor wx-config found; can't detect dependency")
self.is_found = False return
p = subprocess.Popen([self.wxc, '--version'], p = subprocess.Popen([self.wxc, '--version'],
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE) stderr=subprocess.PIPE)

Loading…
Cancel
Save