Build system installs to host-paths by default when cross-compiling with Qt 6 using `QCA_INSTALL_IN_QT_PREFIX`
CMAKE_INSTALL_PREFIX
seems to be completely ignored by the build system when setting QCA_INSTALL_IN_QT_PREFIX
. Instead, it tries to read paths from Qt's config. That should generally be fine but apparently does not work with Qt 6 when cross-compiling as it picks up paths from host build of Qt. The problem is that Qt 6 uses relative paths. For my own applications I've fixed the problem by making paths absolute considering all relevant CMake variables (see functions at the end of https://github.com/Martchus/qtutilities/blob/master/cmake/modules/QtLinkage.cmake).
Of course one can also just workaround this by overriding all paths manually but that's not very convenient.