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:
1 parent
0c3e93d341
commit
39a7d6ab00
1 file changed
+2
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user