Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
Qt Creator 4.11.1, Qt Creator 4.13.0
-
d341ab6371fb97394865cf9c795f0f486174eb51 (qt-creator/tqtc-qt-creator/master)
Description
I have a Cmake project with a seperate folder for sources and headers, and a build script that copies the binaries and headers to a subfolder "dist/ARCHITECTURE/" (for multi-architecture builds).
This folder is not used for SOURCES, HEADERS or included.
(It is ok that it is listed in <Headers> even though it will and never should be used in my context.)
However, when I work on Something.cpp and switch to the Header (e.g. using F4) it will (sometimes) switch to the header in "dist/...", which is counterintuitive as it is not even included.
"Sometimes" means: I think it is related to folder naming and if the files have been opened before, but can not reliably pin it down to when it happens. However, starting QtCreator then opening the project and the cpp file, using F4 switches to the wrong header, while if I open the correct header once, then QtCreator uses the correct header until it is closed (closing the files does not change the behavior)
Attachments
Issue Links
- relates to
-
QTCREATORBUG-25803 "This file is not part of any project" warning shown for headers included via paths with symbolic links
- Closed
For Gerrit Dashboard: QTCREATORBUG-24609 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
372562,2 | CMakePM: Remove <Headers> virtual project node | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |