mac framework build: always set QMAKE_FRAMEWORKPATH
don't mess with the -F linker flag manually. qt headers include other headers via the canonical Module/Header syntax, which means that the compiler also needs the -F flag. QMAKE_FRAMEWORKPATH does exactly that. Task-number: QTBUG-29003 Change-Id: I5f4af1a462697cd6996c54436ccdb9fc2b216020 Reviewed-by: Andy Shaw <andy.shaw@digia.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
parent
bd97768ae5
commit
d0e82ede55
@ -80,10 +80,8 @@ defineTest(qtAddModule) {
|
||||
FRAMEWORK_INCLUDE = $${MODULE_LIBS}/$${MODULE_NAME}.framework/Headers
|
||||
!qt_no_framework_direct_includes:exists($$FRAMEWORK_INCLUDE) {
|
||||
INCLUDEPATH *= $$FRAMEWORK_INCLUDE
|
||||
LINKAGE = -F$${MODULE_LIBS}
|
||||
} else {
|
||||
QMAKE_FRAMEWORKPATH *= $${MODULE_LIBS}
|
||||
}
|
||||
QMAKE_FRAMEWORKPATH *= $${MODULE_LIBS}
|
||||
LINKAGE += -framework $${MODULE_NAME}$${QT_LIBINFIX}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user