Details
-
Suggestion
-
Resolution: Done
-
P2: Important
-
6.3.1
-
-
6abaff810a (qt/qtbase/dev) 6abaff810a (qt/tqtc-qtbase/dev)
Description
_qt_internal_collect_buildsystem_shared_libraries seems to pick up BUILDSYSTEM_TARGETS with:
get_directory_property(buildsystem_targets DIRECTORY ${subdir} BUILDSYSTEM_TARGETS)
https://cmake.org/cmake/help/latest/prop_dir/BUILDSYSTEM_TARGETS.html
However, according to the docs that doesn't include binaries which are added with IMPORTED add_library.
Suggestion:
Make the function similarly pick up IMPORTED_TARGETS as well. Example:
get_directory_property(buildsystem_imported_targets DIRECTORY ${subdir} IMPORTED_TARGETS)
Why:
The libraries are anyway needed when deploying and it'd simplify importing libraries in complex project structures.
Attachments
Issue Links
- relates to
-
QTBUG-94714 Qt's CMake seems to ignore dependencies when generating APK targets
- Closed