[Qt-interest] Removing values from QMAKE_CXXFLAGS
pepone.onrez
pepone.onrez at gmail.com
Thu Aug 11 17:01:24 CEST 2011
Don't set it always, just use a conditional
i will do something like
NO_MP=yes
NO_GL=yes
//..include top level
//top level file
ifneq $(NO_MP, yes)
QMAKE_CXXFLAGS += /MP
endif
ifneq $(NO_GL, yes)
QMAKE_CXXFLAGS += /GL
endif
On Thu, Aug 11, 2011 at 4:48 PM, Bob Hood <bhood2 at comcast.net> 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?
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
>
More information about the Qt-interest-old
mailing list