Results 1 to 4 of 4

Thread: qmake Project file has both "debug" and "release" conditions true

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Nov 2009
    Posts
    129
    Thanks
    4
    Thanked 29 Times in 29 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: qmake Project file has both "debug" and "release" conditions true

    Quote Originally Posted by barryhf View Post
    How is my understanding of the qmake process flawed here?
    Your confusion is that you expect it to make sense, whereas this particular “feature” is entirely counter-intuitive.

    This explanation of the CONFIG function should help.

    The problem is that the CONFIG variable can (and usually does) contain conflicting options, such as both “debug” and “release”; only the last of conflicting options is effective, but an ordinary scope test only discovers whether an option is present, not whether it is effective. Using CONFIG(debug, debug|release), for example, will test whether “debug” is the last (and hence, effective) among the “debug” and “release” options.

  2. The following user says thank you to Coises for this useful post:

    barryhf (15th February 2010)

Similar Threads

  1. Replies: 0
    Last Post: 15th November 2009, 09:40
  2. Replies: 3
    Last Post: 29th August 2009, 22:24
  3. Replies: 3
    Last Post: 8th July 2008, 19:37
  4. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 19:05
  5. QFile Problem~ "Unknow error" in "open(QIODevice::ReadWrite)"
    By fengtian.we in forum Qt Programming
    Replies: 3
    Last Post: 23rd May 2007, 15:58

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.