-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.10.0
-
None
The script fails when configuring a test:
CMake Error at /home/tjmaciei/src/qt/qt6/qtbase/cmake/QtPublicDependencyHelpers.cmake:287 (message): To use a cross-compiled Qt, please set the QT_HOST_PATH cache variable to the location of your host Qt installation. Call Stack (most recent call first): /home/tjmaciei/obj/qt/qt6/qtbase/lib/cmake/Qt6/Qt6Dependencies.cmake:18 (_qt_internal_setup_qt_host_path) /home/tjmaciei/obj/qt/qt6/qtbase/lib/cmake/Qt6/Qt6Config.cmake:181 (include) /home/tjmaciei/obj/qt/qt6/qtbase/lib/cmake/Qt6BuildInternals/StandaloneTests/QtBaseTestsConfig.cmake:7 (find_package) Main.cmake:29 (include) CMakeLists.txt:35 (include)
And it's impossible to pass QT_HOST_PATH to it because all the arguments to the script are in turn passed to Qt6BuildInternals/QtStandaloneTestTemplateProject as variable QT_STANDALONE_TEST_PATH.
One must run that CMake script manually.