Results 1 to 3 of 3

Thread: How to set .pro file about debug and release

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2008
    Posts
    155
    Thanked 15 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to set .pro file about debug and release

    The condition to check whether something is a "Debug" build is CONFIG(debug, debug|release)

  2. #2
    Join Date
    Aug 2010
    Posts
    36
    Thanks
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to set .pro file about debug and release

    You can do something like:

    CONFIG(debug, debug|release) {
    CONFIG -= debug release
    CONFIG += debug
    QMAKE_POST_LINK = " "
    }
    CONFIG(release, debug|release) {
    CONFIG -= debug release
    CONFIG += release
    QMAKE_POST_LINK = " "
    }
    Last edited by rajji_saini; 28th February 2011 at 18:32. Reason: Wrong post

Similar Threads

  1. Replies: 3
    Last Post: 28th March 2009, 15:37
  2. Replies: 0
    Last Post: 6th March 2009, 08:19
  3. Replies: 2
    Last Post: 2nd April 2008, 17:28
  4. Replies: 3
    Last Post: 25th May 2007, 07:49
  5. Replies: 13
    Last Post: 21st June 2006, 21:22

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.