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

CMake: Conflicting examples in qtdeclarative, qtquick3d

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 6.0
    • Fix Version/s: 6.0.0
    • Labels:
      None
    • Commits:
      a09e4c1aa99116ac3dae0682679e99ddd49248c8 (qt/qtdeclarative/dev)
    • Story Points:
      1

      Description

      both qtquick3d and qtdeclarative define some examples with the same name:

      • customgeometry
      • customshaders

      For customgeometry, there are also two CMakeLists.txt files that define customgeometry as a project, creating a conflict in a qt5 build:

      agent:2020/08/21 15:08:48 build.go:302: Call Stack (most recent call first):
      agent:2020/08/21 15:08:48 build.go:302:   qtbase/lib/cmake/Qt6Gui/Qt6GuiDependencies.cmake:26 (find_dependency)
      agent:2020/08/21 15:08:48 build.go:302:   qtbase/lib/cmake/Qt6Gui/Qt6GuiConfig.cmake:38 (include)
      agent:2020/08/21 15:08:48 build.go:302:   qtbase/lib/cmake/Qt6/Qt6Config.cmake:90 (find_package)
      agent:2020/08/21 15:08:48 build.go:302:   qtquick3d/examples/quick3d/customgeometry/CMakeLists.txt:19 (find_package)
      agent:2020/08/21 15:08:48 build.go:302: CMake Error at qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:440 (add_executable):
      agent:2020/08/21 15:08:48 build.go:302:   add_executable cannot create target "customgeometry" because another target
      agent:2020/08/21 15:08:48 build.go:302:   with the same name already exists.  The existing target is an executable
      agent:2020/08/21 15:08:48 build.go:302:   created in source directory
      agent:2020/08/21 15:08:48 build.go:302:   "/home/qt/work/qt/qt5/qtdeclarative/examples/quick/scenegraph/customgeometry".
      agent:2020/08/21 15:08:48 build.go:302:   See documentation for policy CMP0002 for more details.
      

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              qt.team.graphics.and.multimedia Qt Graphics Team
              Reporter:
              kkohne Kai Köhne
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes