← Back to team overview

kicad-developers team mailing list archive

Re: DEBUG vs NDEBUG

 

Hi,

On 02.06.2016 02:32, Wayne Stambaugh wrote:

> Ahh, the old double negative.  Using !NDEBUG would be ugly but I suppose
> it would be effective.  I'm not sure why cmake isn't defining DEBUG for
> debug builds.  I thought at one time it did but I could be wrong.

We define it manually in the compiler specific section, while NDEBUG is
set automatically for all Release builds (Release, RelWithDebInfo,
RelMinSize).

   Simon


Attachment: signature.asc
Description: OpenPGP digital signature


References