configure: propagate errors from libraries' transitive dependencies

if a library uses another library which happens to be absent, then the
former must also fail.

amends cc842ca4.

Change-Id: I91f157a6d1ed40b66e196340a282ebe493fcf40e
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
bb10
Oswald Buddenhagen 2017-02-09 16:56:03 +01:00
parent 632b1c1345
commit 0f16ac3d64
1 changed files with 5 additions and 1 deletions

View File

@ -673,7 +673,11 @@ defineTest(qtConfHandleLibrary) {
}
qtConfEnsureTestTypeDeps("library")
qtConfTestPrepare_compile($$lpfx)
!qtConfTestPrepare_compile($$lpfx) {
$${lpfx}.result = false
export($${lpfx}.result)
return()
}
use_args = $$eval($${lpfx}.literal_args)
qtConfLoadResult($${lpfx}, $$1) {