[Lazarus] Search paths per platform
nc-gaertnma at netcologne.de
Fri Sep 9 20:13:12 CEST 2011
On Fri, 9 Sep 2011 20:23:28 +0300
Zaher Dirkey <parmaja at gmail.com> wrote:
> On Fri, Sep 9, 2011 at 8:16 PM, Leonardo M. Ramé <l.rame at griensu.com> wrote:
> > Hi, is there a way to setup unit search paths per platform?.
> > I usually develp for Linux and Windows, and some times, I use units that
> > can't be accessed using the same relative paths on both platforms.
> > For example, on Linux I use:
> > ../synapse
> > To let the compiler find units from Synapse library.
> > On Windows, the synapse directory is installed on ../../synapse, for
> > example.
> > I would be nice to have conditionals or build modes for each platform.
> I use Project Options-> Build Mode
> But i dont now how to make it autoswitch, maybe by using "In Session".
The active build mode is stored in the session.
Set Project Options / Session / Save session .. / Save lps in
Now you have one session file per machine.
More information about the Lazarus