[Qt-interest] Using -isystem for Qt includes
Sean Harmer
sean.harmer at maps-technology.com
Thu Nov 18 10:56:43 CET 2010
Hi,
Please reply to the list not to me persoanlly.
On Thursday 18 November 2010 09:19:08 you wrote:
> On Thu, 18 Nov 2010 09:04:33 +0000, Sean Harmer
>
> <sean.harmer at maps-technology.com> wrote:
> > On Thursday 18 November 2010 08:48:09 Wilhelm wrote:
> >> Am 17.11.2010 17:58, schrieb Joerg Bornemann:
> >> > On 17/11/2010 14:30, ext Karl Krach wrote:
> >> >> How can I tell qmake, to generate Makefiles with -isystem ?
> >> >
> >> > Put this into your .pro file or into the qmake.conf of your mkspec:
> >> > QMAKE_CXXFLAGS += -isystem
> >>
> >> That doesn't work. qmake still places the -I<...> into the Makefile.
> >>
> >> If you edit the Makefile an replace -I with -isystem the moc will
> >> complain about wrong options.
> >
> > I don't think that qmake supports this. You'll need to patch qmake such
> > that it optionally creates makefiles that use -isystem. Then by the
> > sounds of it either do somethig similar to moc or change qmake such that
> > the original -I options are still passed to the moc.
>
> What is the reason, that it's not the default behavior - since from
> application view the Qt headers are system headers, so there's no reason
> why they should not included by -isystem.
No idea. Nobody has asked for it before or higher priority things to do.
There is already a wish for this:
http://bugreports.qt.nokia.com/browse/QTBUG-7220
If you want it then go vote for it or better yet, grab yourself a clone of Qt
from gitorious, hack on qmake and submit a merge request...
...and then wait forever whilst nothing happens. Well at least until the open
governance project gains some traction.
ATB,
Sean
More information about the Qt-interest-old
mailing list