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

Examples can't be configured due to target name conflict

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 6.2
    • Fix Version/s: 6.2.0 Alpha
    • Component/s: WebEngine
    • Labels:
      None
    • Platform/s:
      All
    • Commits:
      b8804bf868c9f9b18a8b1caa9f512659113ddb98 (qt/qtwebengine/dev) d627842e98c1cbaec0123566dc1af7b6018e5dc1 (qt/qtwebengine/6.2)

      Description

      Configure top-level build with:
      ../qt6-dev-src/configure -developer-build -release – -DQT_BUILD_EXAMPLES=ON -DQT_BUILD_TESTS=ON

      The configuration fails with:

      CMake Error at /usr/share/cmake/Modules/ExternalProject.cmake:3497 (add_custom_target):                                                                                                 
        add_custom_target cannot create target "examples" because another target
        with the same name already exists.  The existing target is a custom target
        created in source directory
        "/home/stampho/work/Qt/qt6-dev-src/qtbase/examples".  See documentation for
        policy CMP0002 for more details.
      Call Stack (most recent call first):
        qtwebengine/CMakeLists.txt:157 (externalproject_add)
      
      
      CMake Error at /usr/share/cmake/Modules/ExternalProject.cmake:2453 (message):
        Target "examples" was not generated by ExternalProject_Add.
      Call Stack (most recent call first):
        qtwebengine/CMakeLists.txt:166 (externalproject_add_stepdependencies)
      
      
      -- Configuring incomplete, errors occurred!
      See also "/home/stampho/work/Qt/qt6-dev-release/CMakeFiles/CMakeOutput.log".
      See also "/home/stampho/work/Qt/qt6-dev-release/CMakeFiles/CMakeError.log".
      CMake Error at /home/stampho/work/Qt/qt6-dev-src/qtbase/cmake/QtProcessConfigureArgs.cmake:932 (message):
        CMake exited with code 1.
      

        Attachments

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

          Activity

            People

            Assignee:
            qt_webengine_team Qt WebEngine Team
            Reporter:
            pvarga Peter Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes