On Sun, 10 May 2020 16:34:11 +0700
Ryan Joseph via fpc-pascal <fpc-pascal@lists.freepascal.org> wrote:

> I found out that setting TCodeToolsOptions.FPCOptions (-Fu and -Fi)
> was doing something because it helped FindDeclaration to search for
> units not in the same same directory as the main program. However now
> I've encountered problems with FindReferences (the example Mattias
> made for me) which seem to be caused by the inclusion of FPCOptions
> (if I remove the FPC options it properly builds the unit search
> graph).
> 
> reading on https://wiki.lazarus.freepascal.org/Codetools it sounds
> like I need to be using TDefineTemplate to add unit search paths.
> Which is the correct way to do this?

TDefineTemplates.
see for example
lazarus/components/codetools/examples/setincludepath.pas

Mattias
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to