Hi, when searching Qt6 in a non-standard location, when using CMAKE_PREFIX_PATH it is found properly. When not using CMAKE_PREFIX_PATH, but HINTS, it fails because the ToolsConfig.cmake files are not found. This seems to be because here https://github.com/qt/qtbase/blob/dev/cmake/QtModuleToolsDependencies.cmake.in[1] no extra search paths are given to the find_dependency() call.
When adding (for testing) the same search paths as here: https://github.com/qt/qtbase/blob/dev/cmake/QtModuleDependencies.cmake.in[2] the ToolsDependencies.cmake files are found. I understand this behaviour. But how are the ToolsDependencies.cmake files supposed to be found, i.e. why are there no extra paths given ? Thanks Alex -------- [1] https://github.com/qt/qtbase/blob/dev/cmake/QtModuleToolsDependencies.cmake.in [2] https://github.com/qt/qtbase/blob/dev/cmake/QtModuleDependencies.cmake.in
-- Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development