Qt World Summit: Register Today!

Using different QMAKE_CXXFLAGS for different source subtrees

  • Was wondering if there's a nifty way to use a different QMAKE_CXXFLAGS for parts of your project than the rest? I'm including BulletPhysics as source (as its own .pri) in my project, and even though the library is fantastic in so many ways but it's code is rather messy and produces awful lot of warnings which doesn't sit well with my -Wall -Werror.

    So I have something like this in my .pro:

    @# include the Bullet Physics engine

    Have to comment this out so Bullet would compile

    #QMAKE_CXXFLAGS += -Werror -Wall

    My own sources

    SOURCES += ..@

    .. and I would want to build the stuff in BulletPhysics.pri without -Werror -Wall and my own stuff with them.

    • M

Log in to reply