From 9bb85b144490f2d0f1707d1c5506d45551e61690 Mon Sep 17 00:00:00 2001 From: MinyazevR <89993880+MinyazevR@users.noreply.github.com> Date: Fri, 12 Jul 2024 05:06:32 +0300 Subject: [PATCH] Update global.pri --- global.pri | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/global.pri b/global.pri index ffb739b734..8dee8424e5 100644 --- a/global.pri +++ b/global.pri @@ -221,6 +221,23 @@ clang { #treat Qt includes as system headers SYSTEM_INCLUDE_PREFIX_OPTION *= --system-header-prefix=$$[QT_INSTALL_HEADERS] # QMAKE_CXXFLAG += -Wno-nullability-completeness -Wno-error=nullability-extension + + for(module, QT) { + equals(module, "testlib"): module = test + moduleList = $$split(module, ) + SYSTEM_INCLUDE_PREFIX_OPTION += \ + --system-header-prefix=Qt$$upper($$take_first(moduleList))$$join(moduleList, ) + } + unset(moduleList) + + for(module, QT) { + equals(module, "testlib"): module = test + moduleList = $$split(module, ) + SYSTEM_INCLUDE_PREFIX_OPTION += \ + -isystem$$shell_quote($$[QT_INSTALL_LIBS]/Qt$$upper(\ + $$take_first(moduleList))$$join(moduleList, )).framework/Headers/ + } + unset(moduleList) } #gcc {