Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-58812

CMake: Plugin config not loaded unless plugin class name ends in Plugin

    XMLWordPrintable

Details

    • 99ace38d22c640e37bb1a41095ee3b126169816a (qt/qtbase/5.15)

    Description

      The installed Qt5PositioningConfig.cmake uses

      file(GLOB pluginTargets "${CMAKE_CURRENT_LIST_DIR}/Qt5Positioning_*Plugin.cmake")
      

      to lookup plugins. This fails to find at least

      Qt5Positioning_QGeoPositionInfoSourceFactoryPoll.cmake
      Qt5Positioning_QGeoPositionInfoSourceFactoryGeoclue.cmake
      Qt5Positioning_QGeoPositionInfoSourceFactorySerialNmea.cmake
      

      so the corresponding plugins do not get added to Qt5Positioning_PLUGINS, and the imported target supplying the location of the plugin (e.g. for deployment) is not available in the user project.

      Given that the mechanism for creating the cmake files (qt_plugin.prf, create_make.prf) is used for all modules, there may be more spots than just Positioning and the named plugins.

      Attachments

        Issue Links

          Activity

            People

              kkohne Kai Köhne
              dg0yt Kai Pastor
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: