diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2022-03-10 09:56:21 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-03-13 20:39:26 +0000 |
commit | f2231c7e3d8718e41f9b490d3e9b9b2fd99e12ac (patch) | |
tree | 896557d7dbbf7e84d47ee39b963ee6e4c5d816b7 | |
parent | 66d162dd18109c7e01b363d5fa4f91801e55a717 (diff) |
tst_qmltyperegistrar: Use qt_autogen_tools_initial_setup
Otherwise, it will break top-level builds, as moc might not have been
build yet.
Fixes: QTBUG-101617
Change-Id: Id938c2e96575b6f2ad65cd5d6f8fe2af1421b02a
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit 7255b7db30098a6290a0c7af74e3ca0258900e4b)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | tests/auto/qml/qmltyperegistrar/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qml/qmltyperegistrar/CMakeLists.txt b/tests/auto/qml/qmltyperegistrar/CMakeLists.txt index ad22f51cd9..5f6f8e83b2 100644 --- a/tests/auto/qml/qmltyperegistrar/CMakeLists.txt +++ b/tests/auto/qml/qmltyperegistrar/CMakeLists.txt @@ -64,6 +64,7 @@ _qt_internal_qml_type_registration(tst_qmltyperegistrar MANUAL_MOC_JSON_FILES ${ add_subdirectory(foreign) qt_add_library(tst-qmltyperegistrar-with-dashes) +qt_autogen_tools_initial_setup(tst-qmltyperegistrar-with-dashes) target_link_libraries(tst-qmltyperegistrar-with-dashes PRIVATE Qt::Core Qt::Qml) qt_enable_autogen_tool(tst-qmltyperegistrar-with-dashes "moc" ON) qt_add_qml_module(tst-qmltyperegistrar-with-dashes @@ -72,3 +73,4 @@ qt_add_qml_module(tst-qmltyperegistrar-with-dashes SOURCES foo.cpp foo.h ) +qt_autogen_tools_initial_setup(tst-qmltyperegistrar-with-dashesplugin) |