5fb99e3860
For user projects we run the static link order check once
'find_package(Qt6 ...)' is called.
If linker can resolve circular dependencies between static libraries
and object files we set the _qt_link_order_matters property of the
Qt::Platform target. This indicates the use of finalizers is not
required and we may rely on CMake-base propagation of resource
libraries and resource object files.
If linker could not resolve circular dependencies depending on
the _qt_resource_objects_finalizer_mode value:
- Finalizer will be called and collected resource objects will be
linked to the target directly.
- Finalizer will be omitted and resource objects will be linked
using the target_sources function implicitly. This only
propagates resource one level up if consumer links the static
library PUBLICly, but all symbols will be resolved correctly
since object files are placed in the beginning of the linker line.
In the CMake version 3.21 we expect that CMake will take care about
the order of the resource object files in a linker line, it's
expected that all object files are located at the beginning of the
linker line.
TODO: Need to confirm that the CMake 3.21 meets the expectations.
Amends
|
||
---|---|---|
.. | ||
mockplugins | ||
test_add_big_resource | ||
test_add_binary_resources_delayed_file | ||
test_add_resource_options | ||
test_add_resources_binary_generated | ||
test_add_resources_delayed_file | ||
test_concurrent_module | ||
test_dbus_module | ||
test_dependent_modules | ||
test_egl_lib | ||
test_global_promotion | ||
test_import_plugins | ||
test_interface | ||
test_interface_link_libraries | ||
test_json_plugin_includes | ||
test_moc_macro_target | ||
test_multiple_find_package | ||
test_opengl_lib | ||
test_platform_defs_include | ||
test_plugin_shared_static_flavor | ||
test_plugins | ||
test_private_includes | ||
test_private_targets | ||
test_QFINDTESTDATA | ||
test_QT_TESTCASE_BUILDDIR | ||
test_QTBUG-63422 | ||
test_qtmainwin_library | ||
test_static_resources | ||
test_testlib_definitions | ||
test_testlib_no_link_gui | ||
test_testlib_no_link_widgets | ||
test_umbrella_config | ||
test_versionless_targets | ||
test_wrap_cpp_and_resources | ||
test_wrap_cpp_options | ||
test(needsquoting)dirname | ||
tst_qaddpreroutine | ||
CMakeLists.txt | ||
test_plugin_shared_static_flavor.cmake |