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

tst targets in qtbase and qt3d clash

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 6.0.0 RC
    • Fix Version/s: 6.0.0
    • Component/s: Build System: CMake, Qt3D
    • Labels:
      None
    • Commits:
      e4cd93bcad4953e95f5bc6f3d35502a604f2ec97 (qt/qt3d/6.0.0) b03f20ef4e6f87e8c4b7290b98399ab05bdb8c9c (qt/qt3d/dev) 9c2f818c270f0edad5d9d6ea7c027e033ab39a64 (qt/qt3d/6.0)

      Description

      configuring a top-level developer build with enabled tests currently fails because of conflicts in test targets between qt3d and qtbase:

      CMake Error at qtbase/cmake/QtExecutableHelpers.cmake:28 (add_executable):
        add_executable cannot create target "tst_qtransform" because another target
        with the same name already exists.  The existing target is an executable
        created in source directory
        "C:/dev/qt/dev/src/qtbase/tests/auto/gui/painting/qtransform".  See
        documentation for policy CMP0002 for more details.
      Call Stack (most recent call first):
        qtbase/cmake/QtTestHelpers.cmake:180 (qt_internal_add_executable)
        qt3d/tests/auto/core/qtransform/CMakeLists.txt:7 (qt_internal_add_test)
      
      
      CMake Error at C:/dev/qt/dev/cmake-msvc-2019-amd64-toplevel/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:1036 (add_library):
        add_library cannot create target "tst_qtransform_rc" because another target
        with the same name already exists.  The existing target is created in
        source directory
        "C:/dev/qt/dev/src/qtbase/tests/auto/gui/painting/qtransform".  See
        documentation for policy CMP0002 for more details.
      Call Stack (most recent call first):
        qtbase/cmake/QtExecutableHelpers.cmake:70 (_qt_internal_generate_win32_rc_file)
        qtbase/cmake/QtTestHelpers.cmake:180 (qt_internal_add_executable)
        qt3d/tests/auto/core/qtransform/CMakeLists.txt:7 (qt_internal_add_test)
      
      
      CMake Error at qtbase/cmake/QtTestHelpers.cmake:277 (add_custom_target):
        add_custom_target cannot create target "tst_qtransform_check" because
        another target with the same name already exists.  The existing target is a
        custom target created in source directory
        "C:/dev/qt/dev/src/qtbase/tests/auto/gui/painting/qtransform".  See
        documentation for policy CMP0002 for more details.
      Call Stack (most recent call first):
        qt3d/tests/auto/core/qtransform/CMakeLists.txt:7 (qt_internal_add_test)
      
      
      CMake Error at qtbase/cmake/QtExecutableHelpers.cmake:28 (add_executable):
        add_executable cannot create target "tst_geometry" because another target
        with the same name already exists.  The existing target is an executable
        created in source directory
        "C:/dev/qt/dev/src/qtdeclarative/tests/auto/quick/geometry".  See
        documentation for policy CMP0002 for more details.
      Call Stack (most recent call first):
        qtbase/cmake/QtTestHelpers.cmake:180 (qt_internal_add_executable)
        qt3d/tests/auto/render/geometry/CMakeLists.txt:7 (qt_internal_add_test)
      
      
      CMake Error at C:/dev/qt/dev/cmake-msvc-2019-amd64-toplevel/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:1036 (add_library):
        add_library cannot create target "tst_geometry_rc" because another target
        with the same name already exists.  The existing target is created in
        source directory
        "C:/dev/qt/dev/src/qtdeclarative/tests/auto/quick/geometry".  See
        documentation for policy CMP0002 for more details.
      Call Stack (most recent call first):
        qtbase/cmake/QtExecutableHelpers.cmake:70 (_qt_internal_generate_win32_rc_file)
        qtbase/cmake/QtTestHelpers.cmake:180 (qt_internal_add_executable)
        qt3d/tests/auto/render/geometry/CMakeLists.txt:7 (qt_internal_add_test)
      
      
      CMake Error at qtbase/cmake/QtTestHelpers.cmake:277 (add_custom_target):
        add_custom_target cannot create target "tst_geometry_check" because another
        target with the same name already exists.  The existing target is a custom
        target created in source directory
        "C:/dev/qt/dev/src/qtdeclarative/tests/auto/quick/geometry".  See
        documentation for policy CMP0002 for more details.
      Call Stack (most recent call first):
        qt3d/tests/auto/render/geometry/CMakeLists.txt:7 (qt_internal_add_test)
      
      
      CMake Error at qtbase/cmake/QtExecutableHelpers.cmake:28 (add_executable):
        add_executable cannot create target "tst_qbuffer" because another target
        with the same name already exists.  The existing target is an executable
        created in source directory
        "C:/dev/qt/dev/src/qtbase/tests/auto/corelib/io/qbuffer".  See
        documentation for policy CMP0002 for more details.
      Call Stack (most recent call first):
        qtbase/cmake/QtTestHelpers.cmake:180 (qt_internal_add_executable)
        qt3d/tests/auto/render/qbuffer/CMakeLists.txt:7 (qt_internal_add_test)
      
      
      CMake Error at C:/dev/qt/dev/cmake-msvc-2019-amd64-toplevel/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:1036 (add_library):
        add_library cannot create target "tst_qbuffer_rc" because another target
        with the same name already exists.  The existing target is created in
        source directory "C:/dev/qt/dev/src/qtbase/tests/auto/corelib/io/qbuffer".
        See documentation for policy CMP0002 for more details.
      Call Stack (most recent call first):
        qtbase/cmake/QtExecutableHelpers.cmake:70 (_qt_internal_generate_win32_rc_file)
        qtbase/cmake/QtTestHelpers.cmake:180 (qt_internal_add_executable)
        qt3d/tests/auto/render/qbuffer/CMakeLists.txt:7 (qt_internal_add_test)
      
      
      CMake Error at qtbase/cmake/QtTestHelpers.cmake:277 (add_custom_target):
        add_custom_target cannot create target "tst_qbuffer_check" because another
        target with the same name already exists.  The existing target is a custom
        target created in source directory
        "C:/dev/qt/dev/src/qtbase/tests/auto/corelib/io/qbuffer".  See
        documentation for policy CMP0002 for more details.
      Call Stack (most recent call first):
        qt3d/tests/auto/render/qbuffer/CMakeLists.txt:7 (qt_internal_add_test)
      
      
      CMake Error at qtbase/cmake/QtExecutableHelpers.cmake:28 (add_executable):
        add_executable cannot create target "tst_qshadergenerator" because another
        target with the same name already exists.  The existing target is an
        executable created in source directory
        "C:/dev/qt/dev/src/qtbase/tests/auto/gui/util/qshadergenerator".  See
        documentation for policy CMP0002 for more details.
      Call Stack (most recent call first):
        qtbase/cmake/QtTestHelpers.cmake:180 (qt_internal_add_executable)
        qt3d/tests/auto/render/shadergraph/qshadergenerator/CMakeLists.txt:7 (qt_internal_add_test)
      
      
      CMake Error at C:/dev/qt/dev/cmake-msvc-2019-amd64-toplevel/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:1036 (add_library):
        add_library cannot create target "tst_qshadergenerator_rc" because another
        target with the same name already exists.  The existing target is created
        in source directory
        "C:/dev/qt/dev/src/qtbase/tests/auto/gui/util/qshadergenerator".  See
        documentation for policy CMP0002 for more details.
      Call Stack (most recent call first):
        qtbase/cmake/QtExecutableHelpers.cmake:70 (_qt_internal_generate_win32_rc_file)
        qtbase/cmake/QtTestHelpers.cmake:180 (qt_internal_add_executable)
        qt3d/tests/auto/render/shadergraph/qshadergenerator/CMakeLists.txt:7 (qt_internal_add_test)
      
      
      CMake Error at qtbase/cmake/QtTestHelpers.cmake:277 (add_custom_target):
        add_custom_target cannot create target "tst_qshadergenerator_check" because
        another target with the same name already exists.  The existing target is a
        custom target created in source directory
        "C:/dev/qt/dev/src/qtbase/tests/auto/gui/util/qshadergenerator".  See
        documentation for policy CMP0002 for more details.
      Call Stack (most recent call first):
        qt3d/tests/auto/render/shadergraph/qshadergenerator/CMakeLists.txt:7 (qt_internal_add_test)
      
      
      CMake Error at qtbase/cmake/QtExecutableHelpers.cmake:28 (add_executable):
        add_executable cannot create target "tst_qshadergraph" because another
        target with the same name already exists.  The existing target is an
        executable created in source directory
        "C:/dev/qt/dev/src/qtbase/tests/auto/gui/util/qshadergraph".  See
        documentation for policy CMP0002 for more details.
      Call Stack (most recent call first):
        qtbase/cmake/QtTestHelpers.cmake:180 (qt_internal_add_executable)
        qt3d/tests/auto/render/shadergraph/qshadergraph/CMakeLists.txt:7 (qt_internal_add_test)
      
      
      CMake Error at C:/dev/qt/dev/cmake-msvc-2019-amd64-toplevel/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:1036 (add_library):
        add_library cannot create target "tst_qshadergraph_rc" because another
        target with the same name already exists.  The existing target is created
        in source directory
        "C:/dev/qt/dev/src/qtbase/tests/auto/gui/util/qshadergraph".  See
        documentation for policy CMP0002 for more details.
      Call Stack (most recent call first):
        qtbase/cmake/QtExecutableHelpers.cmake:70 (_qt_internal_generate_win32_rc_file)
        qtbase/cmake/QtTestHelpers.cmake:180 (qt_internal_add_executable)
        qt3d/tests/auto/render/shadergraph/qshadergraph/CMakeLists.txt:7 (qt_internal_add_test)
      
      
      CMake Error at qtbase/cmake/QtTestHelpers.cmake:277 (add_custom_target):
        add_custom_target cannot create target "tst_qshadergraph_check" because
        another target with the same name already exists.  The existing target is a
        custom target created in source directory
        "C:/dev/qt/dev/src/qtbase/tests/auto/gui/util/qshadergraph".  See
        documentation for policy CMP0002 for more details.
      Call Stack (most recent call first):
        qt3d/tests/auto/render/shadergraph/qshadergraph/CMakeLists.txt:7 (qt_internal_add_test)
      
      
      CMake Error at qtbase/cmake/QtExecutableHelpers.cmake:28 (add_executable):
        add_executable cannot create target "tst_qshadergraphloader" because
        another target with the same name already exists.  The existing target is
        an executable created in source directory
        "C:/dev/qt/dev/src/qtbase/tests/auto/gui/util/qshadergraphloader".  See
        documentation for policy CMP0002 for more details.
      Call Stack (most recent call first):
        qtbase/cmake/QtTestHelpers.cmake:180 (qt_internal_add_executable)
        qt3d/tests/auto/render/shadergraph/qshadergraphloader/CMakeLists.txt:7 (qt_internal_add_test)
      
      
      CMake Error at C:/dev/qt/dev/cmake-msvc-2019-amd64-toplevel/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:1036 (add_library):
        add_library cannot create target "tst_qshadergraphloader_rc" because
        another target with the same name already exists.  The existing target is
        created in source directory
        "C:/dev/qt/dev/src/qtbase/tests/auto/gui/util/qshadergraphloader".  See
        documentation for policy CMP0002 for more details.
      Call Stack (most recent call first):
        qtbase/cmake/QtExecutableHelpers.cmake:70 (_qt_internal_generate_win32_rc_file)
        qtbase/cmake/QtTestHelpers.cmake:180 (qt_internal_add_executable)
        qt3d/tests/auto/render/shadergraph/qshadergraphloader/CMakeLists.txt:7 (qt_internal_add_test)
      
      
      CMake Error at qtbase/cmake/QtTestHelpers.cmake:277 (add_custom_target):
        add_custom_target cannot create target "tst_qshadergraphloader_check"
        because another target with the same name already exists.  The existing
        target is a custom target created in source directory
        "C:/dev/qt/dev/src/qtbase/tests/auto/gui/util/qshadergraphloader".  See
        documentation for policy CMP0002 for more details.
      Call Stack (most recent call first):
        qt3d/tests/auto/render/shadergraph/qshadergraphloader/CMakeLists.txt:7 (qt_internal_add_test)
      
      
      CMake Error at qtbase/cmake/QtExecutableHelpers.cmake:28 (add_executable):
        add_executable cannot create target "tst_qshadernodes" because another
        target with the same name already exists.  The existing target is an
        executable created in source directory
        "C:/dev/qt/dev/src/qtbase/tests/auto/gui/util/qshadernodes".  See
        documentation for policy CMP0002 for more details.
      Call Stack (most recent call first):
        qtbase/cmake/QtTestHelpers.cmake:180 (qt_internal_add_executable)
        qt3d/tests/auto/render/shadergraph/qshadernodes/CMakeLists.txt:7 (qt_internal_add_test)
      
      
      CMake Error at C:/dev/qt/dev/cmake-msvc-2019-amd64-toplevel/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:1036 (add_library):
        add_library cannot create target "tst_qshadernodes_rc" because another
        target with the same name already exists.  The existing target is created
        in source directory
        "C:/dev/qt/dev/src/qtbase/tests/auto/gui/util/qshadernodes".  See
        documentation for policy CMP0002 for more details.
      Call Stack (most recent call first):
        qtbase/cmake/QtExecutableHelpers.cmake:70 (_qt_internal_generate_win32_rc_file)
        qtbase/cmake/QtTestHelpers.cmake:180 (qt_internal_add_executable)
        qt3d/tests/auto/render/shadergraph/qshadernodes/CMakeLists.txt:7 (qt_internal_add_test)
      
      
      CMake Error at qtbase/cmake/QtTestHelpers.cmake:277 (add_custom_target):
        add_custom_target cannot create target "tst_qshadernodes_check" because
        another target with the same name already exists.  The existing target is a
        custom target created in source directory
        "C:/dev/qt/dev/src/qtbase/tests/auto/gui/util/qshadernodes".  See
        documentation for policy CMP0002 for more details.
      Call Stack (most recent call first):
        qt3d/tests/auto/render/shadergraph/qshadernodes/CMakeLists.txt:7 (qt_internal_add_test)
      
      
      CMake Error at qtbase/cmake/QtExecutableHelpers.cmake:28 (add_executable):
        add_executable cannot create target "tst_qshadernodesloader" because
        another target with the same name already exists.  The existing target is
        an executable created in source directory
        "C:/dev/qt/dev/src/qtbase/tests/auto/gui/util/qshadernodesloader".  See
        documentation for policy CMP0002 for more details.
      Call Stack (most recent call first):
        qtbase/cmake/QtTestHelpers.cmake:180 (qt_internal_add_executable)
        qt3d/tests/auto/render/shadergraph/qshadernodesloader/CMakeLists.txt:7 (qt_internal_add_test)
      
      
      CMake Error at C:/dev/qt/dev/cmake-msvc-2019-amd64-toplevel/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:1036 (add_library):
        add_library cannot create target "tst_qshadernodesloader_rc" because
        another target with the same name already exists.  The existing target is
        created in source directory
        "C:/dev/qt/dev/src/qtbase/tests/auto/gui/util/qshadernodesloader".  See
        documentation for policy CMP0002 for more details.
      Call Stack (most recent call first):
        qtbase/cmake/QtExecutableHelpers.cmake:70 (_qt_internal_generate_win32_rc_file)
        qtbase/cmake/QtTestHelpers.cmake:180 (qt_internal_add_executable)
        qt3d/tests/auto/render/shadergraph/qshadernodesloader/CMakeLists.txt:7 (qt_internal_add_test)
      
      
      CMake Error at qtbase/cmake/QtTestHelpers.cmake:277 (add_custom_target):
        add_custom_target cannot create target "tst_qshadernodesloader_check"
        because another target with the same name already exists.  The existing
        target is a custom target created in source directory
        "C:/dev/qt/dev/src/qtbase/tests/auto/gui/util/qshadernodesloader".  See
        documentation for policy CMP0002 for more details.
      Call Stack (most recent call first):
        qt3d/tests/auto/render/shadergraph/qshadernodesloader/CMakeLists.txt:7 (qt_internal_add_test)
      
      
      CMake Error at qtbase/cmake/QtExecutableHelpers.cmake:28 (add_executable):
        add_executable cannot create target "tst_qaction" because another target
        with the same name already exists.  The existing target is an executable
        created in source directory
        "C:/dev/qt/dev/src/qtbase/tests/auto/widgets/kernel/qaction".  See
        documentation for policy CMP0002 for more details.
      Call Stack (most recent call first):
        qtbase/cmake/QtTestHelpers.cmake:180 (qt_internal_add_executable)
        qt3d/tests/auto/input/qaction/CMakeLists.txt:7 (qt_internal_add_test)
      
      
      CMake Error at C:/dev/qt/dev/cmake-msvc-2019-amd64-toplevel/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:1036 (add_library):
        add_library cannot create target "tst_qaction_rc" because another target
        with the same name already exists.  The existing target is created in
        source directory
        "C:/dev/qt/dev/src/qtbase/tests/auto/widgets/kernel/qaction".  See
        documentation for policy CMP0002 for more details.
      Call Stack (most recent call first):
        qtbase/cmake/QtExecutableHelpers.cmake:70 (_qt_internal_generate_win32_rc_file)
        qtbase/cmake/QtTestHelpers.cmake:180 (qt_internal_add_executable)
        qt3d/tests/auto/input/qaction/CMakeLists.txt:7 (qt_internal_add_test)
      
      
      CMake Error at qtbase/cmake/QtTestHelpers.cmake:277 (add_custom_target):
        add_custom_target cannot create target "tst_qaction_check" because another
        target with the same name already exists.  The existing target is a custom
        target created in source directory
        "C:/dev/qt/dev/src/qtbase/tests/auto/widgets/kernel/qaction".  See
        documentation for policy CMP0002 for more details.
      Call Stack (most recent call first):
        qt3d/tests/auto/input/qaction/CMakeLists.txt:7 (qt_internal_add_test)
      
      
      CMake Error at qtbase/cmake/QtExecutableHelpers.cmake:28 (add_executable):
        add_executable cannot create target "tst_qmouseevent" because another
        target with the same name already exists.  The existing target is an
        executable created in source directory
        "C:/dev/qt/dev/src/qtbase/tests/auto/gui/kernel/qmouseevent".  See
        documentation for policy CMP0002 for more details.
      Call Stack (most recent call first):
        qtbase/cmake/QtTestHelpers.cmake:180 (qt_internal_add_executable)
        qt3d/tests/auto/input/qmouseevent/CMakeLists.txt:7 (qt_internal_add_test)
      
      
      CMake Error at C:/dev/qt/dev/cmake-msvc-2019-amd64-toplevel/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:1036 (add_library):
        add_library cannot create target "tst_qmouseevent_rc" because another
        target with the same name already exists.  The existing target is created
        in source directory
        "C:/dev/qt/dev/src/qtbase/tests/auto/gui/kernel/qmouseevent".  See
        documentation for policy CMP0002 for more details.
      Call Stack (most recent call first):
        qtbase/cmake/QtExecutableHelpers.cmake:70 (_qt_internal_generate_win32_rc_file)
        qtbase/cmake/QtTestHelpers.cmake:180 (qt_internal_add_executable)
        qt3d/tests/auto/input/qmouseevent/CMakeLists.txt:7 (qt_internal_add_test)
      
      
      CMake Error at qtbase/cmake/QtTestHelpers.cmake:277 (add_custom_target):
        add_custom_target cannot create target "tst_qmouseevent_check" because
        another target with the same name already exists.  The existing target is a
        custom target created in source directory
        "C:/dev/qt/dev/src/qtbase/tests/auto/gui/kernel/qmouseevent".  See
        documentation for policy CMP0002 for more details.
      Call Stack (most recent call first):
        qt3d/tests/auto/input/qmouseevent/CMakeLists.txt:7 (qt_internal_add_test)
      
      
      CMake Error at qtbase/cmake/QtExecutableHelpers.cmake:28 (add_executable):
        add_executable cannot create target "tst_qabstractanimation" because
        another target with the same name already exists.  The existing target is
        an executable created in source directory
        "C:/dev/qt/dev/src/qtbase/tests/auto/corelib/animation/qabstractanimation".
        See documentation for policy CMP0002 for more details.
      Call Stack (most recent call first):
        qtbase/cmake/QtTestHelpers.cmake:180 (qt_internal_add_executable)
        qt3d/tests/auto/animation/qabstractanimation/CMakeLists.txt:7 (qt_internal_add_test)
      
      
      CMake Error at C:/dev/qt/dev/cmake-msvc-2019-amd64-toplevel/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:1036 (add_library):
        add_library cannot create target "tst_qabstractanimation_rc" because
        another target with the same name already exists.  The existing target is
        created in source directory
        "C:/dev/qt/dev/src/qtbase/tests/auto/corelib/animation/qabstractanimation".
        See documentation for policy CMP0002 for more details.
      Call Stack (most recent call first):
        qtbase/cmake/QtExecutableHelpers.cmake:70 (_qt_internal_generate_win32_rc_file)
        qtbase/cmake/QtTestHelpers.cmake:180 (qt_internal_add_executable)
        qt3d/tests/auto/animation/qabstractanimation/CMakeLists.txt:7 (qt_internal_add_test)
      
      
      CMake Error at qtbase/cmake/QtTestHelpers.cmake:277 (add_custom_target):
        add_custom_target cannot create target "tst_qabstractanimation_check"
        because another target with the same name already exists.  The existing
        target is a custom target created in source directory
        "C:/dev/qt/dev/src/qtbase/tests/auto/corelib/animation/qabstractanimation".
        See documentation for policy CMP0002 for more details.
      Call Stack (most recent call first):
        qt3d/tests/auto/animation/qabstractanimation/CMakeLists.txt:7 (qt_internal_add_test)
      
      

        Attachments

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

          Activity

            People

            Assignee:
            kkohne Kai Köhne
            Reporter:
            kkohne Kai Köhne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes