From a4fa1a93d835f387d657ba7e695afa15d00d238b Mon Sep 17 00:00:00 2001 From: Alexey Edelev Date: Wed, 9 Jun 2021 16:37:02 +0200 Subject: [PATCH] Add recipe-sysroot path to the standalone test build Module dependency lookup mechanism requires all Qt dependencies acessible through the paths specified in PATHS parameter of the find_dependency call. Since cross-repo dependencies are available only in recipe-sysroot, it's necessary to add it explicitly to the QT_ADDITIONAL_PACKAGES_PREFIX_PATH cache variable. Change-Id: I506456bc715943ae7ba2ebe61e1a38936bb93a31 Reviewed-by: Samuli Piippo --- recipes-qt/qt6/qt6-ptest.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-qt/qt6/qt6-ptest.inc b/recipes-qt/qt6/qt6-ptest.inc index 3b7d17f..443c82e 100644 --- a/recipes-qt/qt6/qt6-ptest.inc +++ b/recipes-qt/qt6/qt6-ptest.inc @@ -21,7 +21,7 @@ fakeroot do_install_ptest() { -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \ ${EXTRA_OECMAKE} \ -DQT_BUILD_STANDALONE_TESTS=ON \ - -DQT_ADDITIONAL_PACKAGES_PREFIX_PATH=${D}${QT6_INSTALL_LIBDIR}/cmake \ + -DQT_ADDITIONAL_PACKAGES_PREFIX_PATH="${D}${QT6_INSTALL_LIBDIR}/cmake;${RECIPE_SYSROOT}/${QT6_INSTALL_LIBDIR}/cmake" \ -DCMAKE_STAGING_PREFIX=${D}${prefix} \ ${S} \ -Wno-dev