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

"CMake Component Setup" arbeitet fehlerhaft

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • Qt Creator 17.0.0, Qt Creator 17.0.1
    • None
    • Windows

      Das neue Feature "CMake Component Setup" soll fehlende Bibliotheken im CMakeLists.txt vervollständingen.

      Jedoch wird diese Funktion ausgeführt, obwohl die entsprechende Lib schon aufgeführt ist.

      Bsp:

      Das angefügte Projekt ist ein leeres autogeneriertes Consolen-Projekt, in welchem eine Klasse hinzugefügt wurde.  Der automatisch hinzugefügte Code im CMakeLists.txt ist in den Zeilen 15 und 22 zu finden.  CMake kann mit dieser Datei nichts mehr anfangen.

      Fehlermeldung:

      H:\Projects\Qt_projects\console\cmake_component\CMakeLists.txt:22: Fehler: The plain signature for target_link_libraries has already been used with
      the target "cmake_component".  All uses of target_link_libraries with a
      target must be either all-keyword or all-plain.

      The uses of the plain signature are here:

       * CMakeLists.txt:21 (target_link_libraries)

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

            cadam Cristian Adam
            dmika Daniel Mika
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes