summaryrefslogtreecommitdiffstats
path: root/mkspecs
diff options
context:
space:
mode:
Diffstat (limited to 'mkspecs')
-rw-r--r--mkspecs/features/qt_configure.prf22
1 files changed, 12 insertions, 10 deletions
diff --git a/mkspecs/features/qt_configure.prf b/mkspecs/features/qt_configure.prf
index 8eb8f22347..7e2e5cfecc 100644
--- a/mkspecs/features/qt_configure.prf
+++ b/mkspecs/features/qt_configure.prf
@@ -1698,16 +1698,18 @@ defineTest(qtConfProcessOutput) {
# tie it all together
#
-cfgs =
-isEmpty(_QMAKE_SUPER_CACHE_)|equals(OUT_PWD, $$dirname(_QMAKE_SUPER_CACHE_)) {
- c = $$basename(_PRO_FILE_PWD_)
- config.$${c}.dir = $$_PRO_FILE_PWD_
- cfgs += $$c
- !isEmpty(_QMAKE_SUPER_CACHE_) {
- for (s, SUBDIRS) {
- config.$${s}.dir = $$_PRO_FILE_PWD_/$${s}
- cfgs += $$s
- }
+!isEmpty(_QMAKE_SUPER_CACHE_):!equals(OUT_PWD, $$dirname(_QMAKE_SUPER_CACHE_)) {
+ # sub-repo within a top-level build; no need to configure anything.
+ return()
+}
+
+c = $$basename(_PRO_FILE_PWD_)
+config.$${c}.dir = $$_PRO_FILE_PWD_
+cfgs = $$c
+!isEmpty(_QMAKE_SUPER_CACHE_) {
+ for (s, SUBDIRS) {
+ config.$${s}.dir = $$_PRO_FILE_PWD_/$${s}
+ cfgs += $$s
}
}
configsToProcess =