[Qt-interest] Using -isystem for Qt includes
Sean Harmer
sean.harmer at maps-technology.com
Thu Nov 18 10:04:33 CET 2010
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.
I could be wrong of course ;-)
Sean
More information about the Qt-interest-old
mailing list