Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Using different QMAKE_CXXFLAGS for different source subtrees

Using different QMAKE_CXXFLAGS for different source subtrees

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    matti-
    wrote on last edited by
    #1

    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
    include(../BulletPhysics_2.80/BulletPhysics.pri)

    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

    Author of <a href="http://mmark.777-team.org/">MMark13</a>

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved