On Fri, 9 Sep 2011 20:23:28 +0300
Zaher Dirkey <[email protected]> wrote:

> On Fri, Sep 9, 2011 at 8:16 PM, Leonardo M. Ramé <[email protected]> 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
project directory.

Now you have one session file per machine. 

Mattias

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to