[Qt-interest] Removing values from QMAKE_CXXFLAGS

Bob Hood bhood2 at comcast.net
Thu Aug 11 16:48:42 CEST 2011


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?

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


More information about the Qt-interest-old mailing list