[Lazarus] where do I put project wide conditional define?

Dennis dec12 at avidsoft.com.hk
Tue Apr 19 13:17:05 CEST 2016


I some of my units, I have :

uses classes,
{$IFDEF  USE_XYZ}
    certain_unitXYZ
{$ENDIF};


Where do I put
{$DEFINE USE_XYZ}

so that when I rebuild the project, fpc will see USE_XYZ is defined.

Putting in in the project .lpr  does not work

Thanks in advance.

Dennis

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160419/a25dee7b/attachment-0002.html>


More information about the Lazarus mailing list