Fix libjpeg library finding and opencv build with nonstandard library directories (#8160) (#8179)

* Use libs[0] and headers.directories[0] instead of hardcoded paths in opencv dependencies

* Fix library finding in libjpeg-turbo

* Use build_type=Debug instead of +debug to determine build_type
This commit is contained in:
mcneish1
2018-05-18 15:30:25 -07:00
committed by becker33
parent 54201e3c02
commit f2eb71ca20
2 changed files with 23 additions and 20 deletions

View File

@@ -49,6 +49,10 @@ class LibjpegTurbo(Package):
depends_on("nasm", type='build')
depends_on('cmake', type='build', when="@1.5.90:")
@property
def libs(self):
return find_libraries("libjpeg*", root=self.prefix, recursive=True)
@when('@:1.5.3')
def install(self, spec, prefix):
configure('--prefix=%s' % prefix)