Skip to content

Commit

Permalink
Update global.pri
Browse files Browse the repository at this point in the history
  • Loading branch information
MinyazevR authored Jul 12, 2024
1 parent de5df63 commit 9bb85b1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions global.pri
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9bb85b1

Please sign in to comment.