summaryrefslogtreecommitdiff
path: root/src/qbase.pri
diff options
context:
space:
mode:
Diffstat (limited to 'src/qbase.pri')
-rw-r--r--src/qbase.pri5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/qbase.pri b/src/qbase.pri
index a875a569a6..4ff17630c5 100644
--- a/src/qbase.pri
+++ b/src/qbase.pri
@@ -16,7 +16,10 @@ isEmpty(QT_MAJOR_VERSION) {
#load up the headers info
CONFIG += qt_install_headers
-HEADERS_PRI = $$MODULE_INCLUDES/headers.pri
+#headers.pri is loaded from the last include path
+LAST_MODULE_INCLUDE=$$MODULE_INCLUDES
+for(include_path, MODULE_INCLUDES):LAST_MODULE_INCLUDE=$${include_path}
+HEADERS_PRI = $$LAST_MODULE_INCLUDE/headers.pri
include($$HEADERS_PRI, "", true)|clear(HEADERS_PRI)
#version overriding