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

Conflict name for qt_add_resources

    XMLWordPrintable

Details

    • 895edcd7cdcf47ec9238d42db742f81c5c2eaeb9 (qt/qtbase/dev) 142777a608d1169ad06c8c448655557db317afd7 (qt/qtbase/6.1)

    Description

      When having a big project with several examples, its not uncommon to have several .qrc with the same name for different examples like `example1/qml.qrc` and `example2/qrml.qrc`.

      In this sceneario, qt_add_big_resources fails because it uses the base name of the .qrc file to create a cmake target. CMake then complains that two targets have the same name.

      Consider using the full path of the .qrc file for creating the target name to avoid conflicts. This happens in both Qt6 and Qt5 branches.

      Attachments

        Issue Links

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

          Activity

            People

              jbornema Joerg Bornemann
              juan.casafranca Juan José Casafranca
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes