[Qt-interest] Removing values from QMAKE_CXXFLAGS

Bob Hood bhood2 at comcast.net
Thu Aug 11 17:05:44 CEST 2011


Nevermind, I'm a dork.  It does work.  I was looking at the wrong compile
line.  :)


On 8/11/2011 8:48 AM, Bob Hood wrote:
> I have a need to remove some flags in a project that have been set higher up
> the QMAKE chain.  For example, at the top level, I have something like:
>
>     win32 {
>         QMAKE_CXXFLAGS += /MP
>         QMAKE_CXXFLAGS_RELEASE += /Zi /Ob2 /Oi /Ot /Oy /GT /GL /fp:fast
>      }
>
> But then at a project that eventually inherits these settings, I need to
> remove the "/MP" and "/GL" flags.  I've tried:
>
>     win32 {
>         QMAKE_CXXFLAGS -= /MP
>         QMAKE_CXXFLAGS_RELEASE -= /GL
>     }
>
> But that doesn't seem to work.  Any suggestions?

Render me gone,                       |||
Bob                                 ^(===)^
---------------------------------oOO--(_)--OOo---------------------------------
   "One of the penalties for refusing to participate in politics is that you
           end up being governed by your inferiors." -- /Plato/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110811/83669ec3/attachment.html 


More information about the Qt-interest-old mailing list