summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2021-06-11 17:25:59 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2021-06-17 18:56:12 +0200
commita37957df5c1d3d8624fae2222734a127ec340a72 (patch)
treea75300b2f26d51539438402096ea44cc8308897b /cmake
parent602d26c38f3767be9bec25302c93fc155c4dce59 (diff)
CMake: Add TODO to apply generalized object library linking approach
Pick-to: 6.2 Change-Id: I1ea368e81d8b055ef353a0f021f188b45588c937 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtPublicPluginHelpers.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/QtPublicPluginHelpers.cmake b/cmake/QtPublicPluginHelpers.cmake
index 8c98852c49..ce8ddf0bee 100644
--- a/cmake/QtPublicPluginHelpers.cmake
+++ b/cmake/QtPublicPluginHelpers.cmake
@@ -195,6 +195,9 @@ function(__qt_internal_add_static_plugin_import_macro
__qt_internal_get_static_plugin_init_target_name("${plugin_target}" plugin_init_target)
set(objs_genex "$<TARGET_OBJECTS:${QT_CMAKE_EXPORT_NAMESPACE}::${plugin_init_target}>")
+ # TODO: Replace the target_sources call here with the more generalized approach that will be
+ # added to __qt_propagate_generated_resource (the one that determines whether to use
+ # target_sources or target_link_libraries depending on the CMake version).
target_sources(${QT_CMAKE_EXPORT_NAMESPACE}::${plugin_target} INTERFACE
"${objs_genex}")
endfunction()