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

CMake include_directories ignored for subprojects except for the first one

    XMLWordPrintable

Details

    Description

      I have a project consisting of 4 sub projects. They are all added in the Main project's CMakeLists.txt with add_subdirectory and then each sub project uses include_directories to sets its include paths.
      Qt Creator source code editor fails to see these paths and claims that the included files are not found for all files in paths defined bu second third and fourth sub projects.
      Code model also shows only the pats added in the first sub project.
      Building works but in editor there are lots of warnings because of this.
      Maybe an indexer issue?
      This seems like a regression, it happened before in the early 3.x versions

      Attachments

        1. capture0.png
          capture0.png
          95 kB
        2. capture1.png
          capture1.png
          101 kB
        3. cbp_files.tar.gz
          1 kB
        4. code_model0.png
          code_model0.png
          64 kB
        5. tproj.cbp
          9 kB
        6. tproj.tar.gz
          0.9 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hunger Tobias Hunger
            younoussa _ _
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes