Only add dependent include when not already there
authorMarius Storm-Olsen <marius.storm-olsen@nokia.com>
Fri, 27 May 2011 18:43:30 +0000 (13:43 -0500)
committerQt Continuous Integration System <qt-info@nokia.com>
Fri, 27 May 2011 20:22:40 +0000 (22:22 +0200)
Change-Id: I517ad8188a6f6b5ade763f0189f434f446ab6f05
Reviewed-on: http://codereview.qt.nokia.com/198
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
mkspecs/features/qt.prf

index c611096..3791c95 100644 (file)
@@ -160,7 +160,7 @@ for(QTLIB, $$list($$lower($$unique(QT)))) {
 
 # add include paths for all .depends, since module/application might need f.ex. template specializations etc.
 QT_DEPENDS -= $$QT
-for(QTLIB, $$list($$lower($$unique(QT_DEPENDS)))):INCLUDEPATH += $$INCLUDEPATH $$eval(QT.$${QTLIB}.includes)
+for(QTLIB, $$list($$lower($$unique(QT_DEPENDS)))):INCLUDEPATH *= $$INCLUDEPATH $$eval(QT.$${QTLIB}.includes)
 
 !isEmpty(using_privates):!no_private_qt_headers_warning:if(!debug_and_release|!build_pass) {
     message("This project is using private headers and will therefore be tied to this specific Qt module build version.")