Results 1 to 2 of 2

Thread: How is a Defines unset?

  1. #1

    Default How is a Defines unset?

    In the Makefile, there are various defines.

    Qt Code:
    1. DEFINES = -DFOO_SETTING_ONE -DFOO_SETTING_TWO
    To copy to clipboard, switch view to plain text mode 

    Does the following way of adding a "NO" work in all qmake Makefiles, or is there
    another common way to unset a define?

    Qt Code:
    1. DEFINES = -DNO_FOO_SETTING_ONE
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How is a Defines unset?

    What do you mean by "adding a NO"? What you wrote adds a define called "NO_FOO_SETTING_ONE". If you want to remove a define then remove it from the variable:

    DEFINES -= FOO_SETTING_ONE
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 4
    Last Post: 29th May 2013, 12:56
  2. QMake DEFINES
    By AlHadr in forum Qt Tools
    Replies: 7
    Last Post: 25th January 2013, 10:55
  3. Defines
    By Atomic_Sheep in forum General Programming
    Replies: 2
    Last Post: 11th September 2012, 04:27
  4. Replies: 1
    Last Post: 7th December 2011, 00:04
  5. Qt4 Preprocessor defines
    By Chicken Blood Machine in forum Qt Programming
    Replies: 12
    Last Post: 23rd March 2006, 16:28

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.