summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2021-06-16 17:56:07 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2021-06-17 18:56:12 +0200
commit5ec937115bc677a75525dfa9147c1763adbea50e (patch)
tree2c66e426f57b68c67f9c9c72c4df76ec78321668 /cmake
parenta37957df5c1d3d8624fae2222734a127ec340a72 (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. Pick-to: 6.2 Task-number: QTBUG-92933 Change-Id: I0fce131eff75a0b3090ac0fbb2a12ecfcba5e38d Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'cmake')
-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()