Lowercasifying.

pull/96/head
Jussi Pakkanen 10 years ago
parent c060be551f
commit b00064b594
  1. 6
      dependencies.py

@ -766,8 +766,9 @@ def find_external_dependency(name, kwargs):
required = kwargs.get('required', True)
if not isinstance(required, bool):
raise DependencyException('Keyword "required" must be a boolean.')
if name in packages:
dep = packages[name](kwargs)
lname = name.lower()
if lname in packages:
dep = packages[lname](kwargs)
if required and not dep.found():
raise DependencyException('Dependency "%s" not found' % name)
return dep
@ -791,7 +792,6 @@ packages = {'boost': BoostDependency,
'gtest': GTestDependency,
'gmock': GMockDependency,
'qt5': Qt5Dependency,
'Qt5': Qt5Dependency, # Qt people sure do love their upper case.
'gnustep': GnuStepDependency,
'appleframeworks': AppleFrameworks,
'wxwidgets' : WxDependency,

Loading…
Cancel
Save