[Lazarus] Conditional define for a whole project
Graeme Geldenhuys
graemeg.lists at gmail.com
Thu Aug 4 15:01:55 CEST 2011
On 4 August 2011 14:59, Fr0sT wrote:
> I wonder how to set a conditional define for a project. All I want is to have
> 'FOO' defined so that I could use {$ifdef FOO}.
There are a few methods to do this:
1. Use a common include file in ALL your units. Changing the
include file applies
immediately to all units.
2. Add the '-dXXXXX' define in "Project > Options > Compiler Options > Other"
3. Add it to your fpc.cfg file.
--
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net
More information about the Lazarus
mailing list