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

CMake based project. Include path resolved when it shouldn't

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • Qt Creator 3.3.0-rc1
    • None
    • QtCreator 3.3.0 (4 Dec snapshot); MinGW 4.9.2/Clang 3.6.0svn; CMake 3.0.2/3.1-rc2; Ninja build system; Win7x64;
    • I518a2601295017636f4c450cc8a9026f4b41689a

    Description

      To reproduce a bug: simply open attached project.

      Open "src/global/global.cpp" and src/sample1/sample1.cpp and you'll see that sample.h is resolved when it shouldn't be. This header should be visible only in "src/sample/sample.cpp".

      I've set header search paths in "src/CMakeLists.txt" and "src/sample/CMakeLists.txt"

      If you try to build it, then compiler will complain about sample.h for global.cpp and sample1.cpp.

      Attachments

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

        Activity

          People

            dt Daniel Teske
            whos_there Andrei L
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes