[Lazarus] How to get rid of duplicate ppu?

Michael Van Canneyt michael at freepascal.org
Wed Jun 11 17:06:49 CEST 2014



On Wed, 11 Jun 2014, Mattias Gaertner wrote:

> On Wed, 11 Jun 2014 13:10:25 +0200
> Giuliano Colla <giuliano.colla at fastwebnet.it> wrote:
>
>> <OtherUnitFiles Value="$(LazarusDir)/lcl/units/$(TargetCPU)-$(TargetOS);$(LazarusDir)/lcl/units/$(TargetCPU)-$(TargetOS)/$(LCLWidgetType);$(LazarusDir)/components/codetools/units/$(TargetCPU)-$(TargetOS);$(LazarusDir)/components/custom;$(LazarusDir)/components/lazutils;$(LazarusDir)/packager/units/$(TargetCPU)-$(TargetOS)"/>
>>         <UnitOutputDirectory Value="lib/$(TargetCPU)-$(Target_OS)"/>
>>         <SrcPath Value="$(LazarusDir)/lcl;$(LazarusDir)/lcl/interfaces/$(LCLWidgetType);$(LazarusDir)/components/synedit;$(LazarusDir)/components/codetools"/>
>
> Delete them all.
>
> Use packages LCL and Codetools instead.

Maybe the IDE should check whether one of the paths points to the sources directory of a known package.
If so, it could offer to replace the path with a dependency of the package.

It happened not once that I saw a project where the author put explicitly the path to an existing package.
The fix has always been to do as I described above...

Michael.




More information about the Lazarus mailing list