Combination of the following conditions result in wrong include paths order:
- mkspecs/qmodule.pri appends some paths to INCLUDEPATH, e.g. this is the case on Windows for MySql and PostgreSql include dirs, when they are provided via configure -I flags
- qmake project is Qt module with typical .qmake.conf
In this case, INCLUDEPATH from qmodule.pri take priority over INCLUDEPATH defined in project. This breaks compilation of QtWebKit on Windows in CI (see ), where header "decimal.h" from MySQL is erroneously included instead of local "Decimal.h" header.
In attachment there is simple Qt module, reproducing this bug.