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

Loading…
Cancel
Save