aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2021-06-21 15:45:25 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2021-06-23 09:16:46 +0200
commit36827a9011ce008673d7a9b73bc74ee208ea8ebd (patch)
tree62ba77434564f3d83ef72c4f2ace22b0e1be8e98 /CMakeLists.txt
parent9986e125eba4642da82607d1d79ef29e7757a70e (diff)
CMake: Don't check QT_QML_MODULE_RESOURCE_PATHS during file generation
_qt_internal_target_enable_qmlcachegen is called if at least one qml file needs to be processed by qmlcachegen. Thus checking for QT_QML_MODULE_RESOURCE_PATHS not to be empty when generating a qmlcache_loader.cpp file makes no sense, we already know at least one file will be processed. If the assumption above were not true, e.g. QT_QML_MODULE_RESOURCE_PATHS was empty and _qt_internal_target_enable_qmlcachegen() was called, the _qt_internal_propagate_qmlcache_object_lib() -> add_library(OBJECT) call would fail trying to compile a file that does not exist (was not generated). Remove the genex checks for QT_QML_MODULE_RESOURCE_PATHS. This fixes qmlcache object libraries to be linked to consumers with static Qt builds. Before this change the qmlcache object libraries were not linked at all, because the QT_QML_MODULE_RESOURCE_PATHS genex check in target_link_libraries failed due to the QT_QML_MODULE_RESOURCE_PATHS values not being exported. Pick-to: 6.2 Change-Id: Iec66c747b4189c0219aeb930e7c9c61f22d03d9b Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions