Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-33629

Qt Quick Test wizard creates hardcoded 'qmlfiles' target to the CMakeLists.txt

XMLWordPrintable

      That means when adding another test project into the same project, it will cause a CMake error because the target already exists.

      To reproduce:

      • create project
      • add new Qt Quick Test subproject
      • add new Qt Quick Test subproject

      This results in:

      [cmake] CMake Error at othertest/CMakeLists.txt:21 (add_custom_target):
      [cmake]   add_custom_target cannot create target "qmlfiles" because another target
      [cmake]   with the same name already exists.  The existing target is a custom target
      [cmake]   created in source directory
      [cmake]   "/home/jopoikel/work/tests/quickcmake/sometest".  See documentation for
      [cmake]   policy CMP0002 for more details.
      

      Perhaps this could be fixed by concatenating the test name into this target name.

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

            cstenger Christian Stenger
            poikelin Joni Poikelin
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes