The problem replicates in all CMake files, so even if Qt5CoreConfig.cmake is manually added with set(_qt5Core_install_prefix "/usr"), the next one is eg. Qt5Qml. Furthermore hardcoding it to /usr is not probably what's wanted.
In the qtbase code, probably mkspecs/features/cmake_functions.prf is one place to look at.
I found https:/ /bugzilla. redhat. com/show_ bug.cgi? format= multiple& id=929227 which has discussed a related problem before.
The problem replicates in all CMake files, so even if Qt5CoreConfig.cmake is manually added with set(_qt5Core_ install_ prefix "/usr"), the next one is eg. Qt5Qml. Furthermore hardcoding it to /usr is not probably what's wanted.
In the qtbase code, probably mkspecs/ features/ cmake_functions .prf is one place to look at.