Details
-
Suggestion
-
Resolution: Fixed
-
Not Evaluated
-
Qt Creator 13.0.2
-
None
-
-
3941e25b8 (16.0)
Description
When including different .pri files based on some condition, both show up in the project tree even though only one of them is actually included.
CONFIG(opt1) { include(path/to/opt1.pri) } CONFIG(opt2) { include(path/to/opt2.pri) }
In my case both include files add a directory to the INCLUDEPATH, so printing the INCLUDEPATH before and after inclusion confirms that, indeed, only one of the .pri files is actually included.
It would be a lot more intuitive if only the one actually included would show up in the project tree, or if the inactive one was at least grayed-out as is done with inactive HEADERS and SOURCES.
Attachments
For Gerrit Dashboard: QTCREATORBUG-32405 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
620707,2 | QmakeProjectManager: Mark included .pri files as disabled | 16.0 | qt-creator/qt-creator | Status: MERGED | +2 | +1 |