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

building documentation fails due to target "tst_examples" defined multiple times

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.2.0 Beta1
    • Documentation
    • None

      I run the following commands

      rm -rf qt5
      rm -rf qt5build
      git clone git://code.qt.io/qt/qt5.git
      cd qt5
      git checkout dev
      perl init-repository -module-subset=all
      git submodule foreach "git checkout dev || true"
      git submodule foreach "git pull --rebase || true"
      cd ..
      mkdir qt5build
      cd qt5build
      ../qt5/configure -developer-build -skip qtremoteobjects -skip qtwebsockets 2>&1 | tee ../configure_`date +%F_%H-%M-%S`.txt
      cmake --build . --target html_docs 2>&1 | tee ../output_`date +%F_%H-%M-%S`.txt
      

      And get the following error:

      Configuring 'qtdoc'
      CMake Error at qtbase/cmake/QtExecutableHelpers.cmake:28 (add_executable):
        add_executable cannot create target "tst_examples" because another target
        with the same name already exists.  The existing target is an executable
        created in source directory
        "/home/andreasbuhr/development/qtdocumentation/qt5/qtdeclarative/tests/auto/quick/examples".
        See documentation for policy CMP0002 for more details.
      Call Stack (most recent call first):
        qtbase/cmake/QtTestHelpers.cmake:214 (qt_internal_add_executable)
        qtdoc/tests/auto/quick/examples/CMakeLists.txt:7 (qt_internal_add_test)
      

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

            kkohne Kai Köhne
            andreasbuhr Andreas Buhr
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes