[Development] Problem finding the ToolsDependencies.cmake files - why without search paths?
Alexander Neundorf
neundorf at kde.org
Thu Dec 5 23:17:27 CET 2024
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20241205/0ae06fbe/attachment.htm>
More information about the Development
mailing list