From cf23c6e356dd96bb34d9387a58a4caef3dadc06c Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Mon, 29 Oct 2018 19:57:29 +0100 Subject: [PATCH] don't include QT_INSTALL_HEADERS with -isystem as on most distros it is set to /usr/include what results in gcc compiler errors. Should be no problem as we don't need this path the way includes are made in QSkinny --- qskconfig.pri | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/qskconfig.pri b/qskconfig.pri index 12af3098..f78c0c49 100644 --- a/qskconfig.pri +++ b/qskconfig.pri @@ -61,8 +61,15 @@ linux { # Qt headers do not stand pedantic checks, so it's better # to exclude them by declaring them as system includes + # As most distros set QT_INSTALL_HEADERS to /usr/include we + # would run into gcc compiler errors and better drop it + # from the list below. Should be no problem as we don't + # add the Qt module to our includes and therefore don't + # need this path. + + # QMAKE_CXXFLAGS += -isystem $$[QT_INSTALL_HEADERS] + QMAKE_CXXFLAGS += \ - -isystem $$[QT_INSTALL_HEADERS] \ -isystem $$[QT_INSTALL_HEADERS]/QtCore \ -isystem $$[QT_INSTALL_HEADERS]/QtGui \ -isystem $$[QT_INSTALL_HEADERS]/QtGui/$$[QT_VERSION]/QtGui \