diff --git a/mkspecs/features/qt_configure.prf b/mkspecs/features/qt_configure.prf index 93448acb91c..4c18dbf953c 100644 --- a/mkspecs/features/qt_configure.prf +++ b/mkspecs/features/qt_configure.prf @@ -340,6 +340,11 @@ defineTest(qtConfParseCommandLine) { type = boolean } + # Skip the -qmake option. + isEmpty(type):contains(opt, "qmake") { + next() + } + isEmpty(type):contains(opt, "skip") { isEmpty(skipOptionWarningAdded) { qtConfAddWarning("Command line option -skip is only effective in top-level builds.")