Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-94581 Review and Document new Qt 6.2 CMake API
  3. QTBUG-95080

Do not create qml plugin target when given an executable in qt_add_qml_module

    XMLWordPrintable

Details

    • f88bfd0bf061914151e0e1cd408609e68c9ec00d (qt/qtdeclarative/dev) cb00dc16a078b6dedf60de3ba7449dc275c6603a (qt/qtdeclarative/6.2)

    Description

      Reference

      https://git.qt.io/alcroito/qt6-cmake-api-review/-/commit/1129de590fd595b97f162114745224a712d08956#179fb5213a114272e340c63285f9fb35ba530ab8_85_85

      Conclusion: Don't create plugin target by default if $target == is_executable. No need to specify NO_CREATE_PLUGIN_TARGET.

      A special case a case of this is Android, where the executable is actually a SHARED_LIBRARY in Qt world.

      So the check is actually if(target_type STREQUAL EXECUTABLE OR target_has_qt_is_executable property).

      We can add some potential CREATE_TARGET_PLUGIN_FOR_EXECUTABLE if there will be a customer request for that.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              fabiankosmale Fabian Kosmale
              alexandru.croitor Alexandru Croitor
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes