Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.7.3
-
None
-
2a1e82452a192c88bcf0250f5976492f6dc3b65f
Description
When using pkg-config via
CONFIG += link_pkgconfig
PKGCONFIG += pkgconfig-file.pc
moc does not get the relevant include directories from the pkgconfig file.
link_pkgconfig only fills up the CFLAGS, CXXFLAGS and LIBS variables, but moc uses DEFINES and INCLUDEPATH.
Currently something like
INCLUDEPATH += $$system(pkg-config -cflags pkgconfig-file | tr \' \' \'\\n\' | grep ^-I | cut -d I -f 2)
is required to fix INCLUDEPATH by hand. It would be great if that could be done by link_pkgconfig automatically (same with DEFINES).