diff options
| author | Joerg Bornemann <joerg.bornemann@qt.io> | 2021-08-31 15:29:07 +0200 |
|---|---|---|
| committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2021-08-31 16:27:12 +0200 |
| commit | 609cfe35880cd85f35c20afcf3f0f11d15712b2c (patch) | |
| tree | 2682760d1b9d3b401da15f5b6a98fc738345fc83 | |
| parent | 3a4b04c7cac426c5dd0e4ba53129863d16e89c89 (diff) | |
Fix top-level developer build
Commit 4c305d7d2807b3bba9c3935cfe28b88e491f6032 broke the top-level
developer build by including a doc snippet that relies on the existence
of the moc binary.
Don't include the snippet in the top-level build when moc cannot have
been built yet.
Pick-to: 6.2
Fixes: QTBUG-96118
Change-Id: I79cbd95f224e8af104eebc7a7fbe5de5e4dff2ec
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
| -rw-r--r-- | src/qml/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/CMakeLists.txt b/src/qml/CMakeLists.txt index bca9c2556b..49aa044e2c 100644 --- a/src/qml/CMakeLists.txt +++ b/src/qml/CMakeLists.txt @@ -685,6 +685,6 @@ qt_internal_add_docs(Qml ) # include snippet projects for developer builds -if(QT_FEATURE_private_tests AND CMAKE_VERSION VERSION_GREATER_EQUAL "3.19") +if(NOT QT_SUPERBUILD AND QT_FEATURE_private_tests AND CMAKE_VERSION VERSION_GREATER_EQUAL "3.19") add_subdirectory(doc/snippets/cmake/qt_target_qml_sources) endif() |
