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

[cmake] stenciloutline name clash

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.8.0 RC, 6.9.0 FF
    • 6.9
    • Qt RHI, Quick: 3D
    • None
    • 70b431345 (dev), 606f7af1d (6.8)

    Description

      there are two targets named stenciloutline:

      qtbase/tests/manual/rhi/stenciloutline/CMakeLists.txt
      qtquick3d/examples/quick3d/extensions/stenciloutline/CMakeLists.txt

      if both are enabled, this error occurs

      CMake Error at /home/tim/build/build-qt6-dev-clang_18_qt_dev-Debug2/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:710 (add_executable):
        add_executable cannot create target "stenciloutline" because another target
        with the same name already exists.  The existing target is an executable
        created in source directory
        "/home/tim/dev/qt6-dev/qtbase/tests/manual/rhi/stenciloutline".  See
        documentation for policy CMP0002 for more details.
      Call Stack (most recent call first):
        /home/tim/build/build-qt6-dev-clang_18_qt_dev-Debug2/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:651 (_qt_internal_create_executable)
        /home/tim/build/build-qt6-dev-clang_18_qt_dev-Debug2/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:964 (qt6_add_executable)
        qtquick3d/examples/quick3d/extensions/stenciloutline/CMakeLists.txt:11 (qt_add_executable)
      

      Attachments

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

        Activity

          People

            timblechmann tim blechmann
            timblechmann tim blechmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes