- 
     Technical task Technical task
- 
    Resolution: Done
- 
    P2: Important 
- 
    None
- 
        73c76005e64d92ff5e3ef7d2a578b1d7a14b3d5f (qt/qtdeclarative/dev) c6849e80a4bb3c96c91ff114b6b17c3a68d8a986 (qt/qtdeclarative/6.2)
Add a NO_PLUGIN option. It is automatically implied for executable backing libraries, which is tracked at QTBUG-95080
qt_add_qml_module(Foo) <- this is ok, creates a default optional plugin target. (#1) qt_add_qml_module(Foo NO_CREATE_PLUGIN_TARGET PLUGIN_TARGET MyPlugFoo) <- this is ok, the plugin target will be created later. (#2) qt_add_qml_module(Foo NO_PLUGIN PLUGIN_TARGET MyPlugFoo) <- this should be a FATAL_ERROR, NO_PLUGIN is a new proposed option (#3) qt_add_qml_module(Foo NO_CREATE_PLUGIN_TARGET ) <- this should be a FATAL_ERROR in Qt6.2, can revisit for later version. (#4)
Handle #3 and #4 in the snippets above, aka add FATAL_ERRORS.
NO_PLUGIN_OPTIONAL should be automatically assumed, if $target == $plugin_target.
- depends on
- 
                     QTBUG-95080
        Do not create qml plugin target when given an executable in qt_add_qml_module QTBUG-95080
        Do not create qml plugin target when given an executable in qt_add_qml_module-         
- Closed
 
-         
- relates to
- 
                     QTBUG-95140
        Revise what should be the default target and output name of a qml plugin QTBUG-95140
        Revise what should be the default target and output name of a qml plugin-         
- Closed
 
-