build: Fixing dependency detection

When detecting location of the library, `includes` and `libpath`
variables must be used instead of `cxxflags` and `linkflags` to specify
path to includes and path to the libraries.

Change-Id: I81048a9c80f3e743630a0e80231fc6290aa782ec
This commit is contained in:
Alexander Afanasyev committed 2014-05-12 17:29:57 -07:00
1 parent 0c3e93d341
commit 39a7d6ab00
1 file changed
+2 -2
+2 -2
View File
@@ -18,8 +18,8 @@ def checkDependency(self, name, **kw):
kw['mandatory'] = kw.get('mandatory', True)
if root:
isOk = self.check_cxx(cxxflags="-I%s/include" % root,
linkflags="-L%s/lib" % root,
isOk = self.check_cxx(includes="%s/include" % root,
libpath="%s/lib" % root,
**kw)
else:
isOk = self.check_cxx(**kw)