Correct paths for ignoring Qt headers.

--HG--
branch : release
This commit is contained in:
Roman Telezhynskyi 2015-03-16 11:44:14 +02:00
parent ef0a2e206b
commit 39068847f5

View File

@ -92,6 +92,7 @@ DEFAULT_PREFIX = /usr
# Also trying make all possible for speed up build time. # Also trying make all possible for speed up build time.
unix { unix {
!macx{
# Key -isystem disable checking errors in system headers. Mark ignore warnings Qt headers. # Key -isystem disable checking errors in system headers. Mark ignore warnings Qt headers.
ISYSTEM += \ ISYSTEM += \
-isystem "$$[QT_INSTALL_HEADERS]" \ -isystem "$$[QT_INSTALL_HEADERS]" \
@ -100,6 +101,19 @@ ISYSTEM += \
-isystem "$$[QT_INSTALL_HEADERS]/QtGui" \ -isystem "$$[QT_INSTALL_HEADERS]/QtGui" \
-isystem "$$[QT_INSTALL_HEADERS]/QtXmlPatterns" \ -isystem "$$[QT_INSTALL_HEADERS]/QtXmlPatterns" \
-isystem "$$[QT_INSTALL_HEADERS]/QtCore" -isystem "$$[QT_INSTALL_HEADERS]/QtCore"
} else {
ISYSTEM += \
-isystem "$$[QT_INSTALL_LIBS]/QtWidgets.framework/Headers/" \
-isystem "$$[QT_INSTALL_LIBS]/QtWidgets.framework/Versions/5/Headers/" \
-isystem "$$[QT_INSTALL_LIBS]/QtXml.framework/Headers/" \
-isystem "$$[QT_INSTALL_LIBS]/QtXml.framework/Versions/5/Headers/" \
-isystem "$$[QT_INSTALL_LIBS]/QtGui.framework/Headers/" \
-isystem "$$[QT_INSTALL_LIBS]/QtGui.framework/Versions/5/Headers/" \
-isystem "$$[QT_INSTALL_LIBS]/QtXmlPatterns.framework/Headers/" \
-isystem "$$[QT_INSTALL_LIBS]/QtXmlPatterns.framework/Versions/5/Headers/" \
-isystem "$$[QT_INSTALL_LIBS]/QtCore.framework/Headers/" \
-isystem "$$[QT_INSTALL_LIBS]/QtCore.framework/Versions/5/Headers/"
}
# Usefull GCC warnings keys. # Usefull GCC warnings keys.
GCC_DEBUG_CXXFLAGS += \ GCC_DEBUG_CXXFLAGS += \