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):
Dependency.__init__(self)
self.is_found = False
if WxDependency.wx_found is None:
self.check_wxconfig()
if not WxDependency.wx_found:
raise DependencyException('Wx-config not found.')
self.is_found = False
mlog.log("Neither wx-config-3.0 nor wx-config found; can't detect dependency")
return
p = subprocess.Popen([self.wxc, '--version'],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)

Loading…
Cancel
Save