[Development] Problem finding the ToolsDependencies.cmake files - why without search paths?
Alexander Neundorf
neundorf at kde.org
Sat Dec 7 13:35:16 CET 2024
On Donnerstag, 5. Dezember 2024 23:17:27 MEZ Alexander Neundorf wrote:
> 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 ?
So that's this bug ?
https://bugreports.qt.io/browse/QTBUG-97615[1]
i.e. to avoid that cmake finds target-system executables when cross compiling ?
How about only avoiding the search paths when cross compiling, but using them when
not cross compiling ?
Or should I ask that in the ticket ?
Alex
--------
[1] https://bugreports.qt.io/browse/QTBUG-97615
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20241207/f35704f4/attachment.htm>
More information about the Development
mailing list