Use QMAKE_DEFAULT_INCDIRS to extend list of system directories.

This commit is contained in:
Roman Telezhynskyi 2020-12-26 18:29:19 +02:00
parent 2627c08cf7
commit 12e2c8aaba
2 changed files with 8 additions and 2 deletions

View File

@ -359,8 +359,13 @@ LIBS_USED_FOR_QT = \
QtConcurrent
for(somelib, $$list($$LIBS_USED_FOR_QT)) {
ISYSTEM += -isystem $$[QT_INSTALL_LIBS]/$${somelib}.framework/Versions/5/Headers
ISYSTEM += -isystem $$[QT_INSTALL_LIBS]/$${somelib}.framework/Headers
contains( QMAKE_DEFAULT_INCDIRS, "$$[QT_INSTALL_LIBS]/$${somelib}.framework/Versions/5/Headers" ) {
QMAKE_DEFAULT_INCDIRS += "$$[QT_INSTALL_LIBS]/$${somelib}.framework/Versions/5/Headers"
}
contains( QMAKE_DEFAULT_INCDIRS, "$$[QT_INSTALL_LIBS]/$${somelib}.framework/Headers" ) {
QMAKE_DEFAULT_INCDIRS += "$$[QT_INSTALL_LIBS]/$${somelib}.framework/Headers"
}
}
}

View File

@ -127,6 +127,7 @@ message(Data files: $$[QT_INSTALL_DATA])
message(Translation files: $$[QT_INSTALL_TRANSLATIONS])
message(Settings: $$[QT_INSTALL_SETTINGS])
message(Examples: $$[QT_INSTALL_EXAMPLES])
message(Default include dirs: $${QMAKE_DEFAULT_INCDIRS})
# Path to recource file.
win32:RC_FILE = share/resources/valentina.rc