summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2021-06-16 17:56:07 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-06-17 19:13:07 +0000
commit97140f01566a7e18d19c64af4dc3ad270bc57dfb (patch)
tree958ea301c4af4abbb3c015b9481e46031f538878
parent70ad80660e554a558ac6ce3986198aaef7241044 (diff)
CMake: Export info if an object lib target is a plugin initializer
Needed for qtdeclarative so we can filter out which object library should go into which export set, because qt_internal_add_qml_module can create both a backing library export set and a plugin export set. The plugin initializer object lib should go to the plugin export set. Task-number: QTBUG-92933 Change-Id: I0fce131eff75a0b3090ac0fbb2a12ecfcba5e38d Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit 5ec937115bc677a75525dfa9147c1763adbea50e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--cmake/QtPublicPluginHelpers.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/QtPublicPluginHelpers.cmake b/cmake/QtPublicPluginHelpers.cmake
index ce8ddf0bee..919aee10c6 100644
--- a/cmake/QtPublicPluginHelpers.cmake
+++ b/cmake/QtPublicPluginHelpers.cmake
@@ -244,6 +244,11 @@ function(__qt_internal_add_static_plugin_init_object_library
${QT_CMAKE_EXPORT_NAMESPACE}::Core
)
+ set_property(TARGET ${plugin_init_target} PROPERTY _is_qt_plugin_init_target TRUE)
+ set_property(TARGET ${plugin_init_target} APPEND PROPERTY
+ EXPORT_PROPERTIES _is_qt_plugin_init_target
+ )
+
set(${out_var_plugin_init_target} "${plugin_init_target}" PARENT_SCOPE)
endfunction()