[Qt-creator] Conditional define not working? Debug:DEFINES+=DEBUG

Ed Sutton ESutton at fescorp.com
Tue May 12 20:33:41 CEST 2009


> >>>>> I think the canonical way is to use
> >>>>>   CONFIG(debug, debug|release)
> >>>>> Andre'

I finally went back and read this old thread and implemented it as you recommended.  For example:

CONFIG(debug, debug|release):DEFINES+=DEBUG

CONFIG(release, debug|release):DEFINES+=RELEASE

The "Debug:DEFINES+=DEBUG" or "debug:DEFINES+=DEBUG" syntax did not seem to work.  I had thought this syntax had worked at one time, but actually it added these DEFINES in both release and debug builds.

Thanks Andre!

-Ed






More information about the Qt-creator-old mailing list