Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
Qt Creator 4.0.0
-
None
-
* OS: Windows 10 64 bit
* QtC: Official v4.0.0
* Project type: qmake
Description
For example, when is used this qmake's project:
QT += core QT -= gui CONFIG += c++11 console CONFIG -= app_bundle TEMPLATE = app DEFINES += contains(DEFINES, USE_FOO): include(foo.pri) SOURCES += app.cpp
then the project's tree shows the foo.h(cpp) files, even the USE_FOO define is not specified in DEFINES.
and same things when the files directly has been specified:
DEFINES += contains(DEFINES, USE_FOO) { HEADERS += foo.h SOURCES += foo.cpp }
PS: the sample project is attached.