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

cmake INTERFACE lib: "file is not part of any project"

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 4.10.0-beta2
    • debian testing amd64 with KF5

    Description

      Ahoj!

      I've noticed some glitches in developing cmake' INTERFACE library using QC, in particular:

      1. if CMakeLists.txt contains only INTERFACE target then its files always marked as "not part of any project" with many-many errors (see qc-interface-bug1.png)
      2. if CMakeLists.txt additionally contains target which uses the interface library then it becomes a little better – files of the library marked as "not part of any project" only before manually rerunning cmake (qc-interface-bug2.{1,2}.png correspondingly).
      3. if interface library uses target_sources then in case 2 everything works. I'd love to use this case but only after #15677 will be fixed.

      Attachments

        1. bug.hpp
          0.1 kB
        2. CMakeLists.txt
          0.3 kB
        3. main.cpp
          0.1 kB
        4. qc-interface-bug1.png
          qc-interface-bug1.png
          164 kB
        5. qc-interface-bug2.1.png
          qc-interface-bug2.1.png
          160 kB
        6. qc-interface-bug2.2.png
          qc-interface-bug2.2.png
          133 kB

        Issue Links

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

          Activity

            People

              hunger Tobias Hunger
              gbug Gena Bug
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes