[fpc-pascal] Searching recursively for units in a path
Michael Van Canneyt
michael at freepascal.org
Sat Dec 5 12:52:07 CET 2015
On Sat, 5 Dec 2015, luciano de souza wrote:
> Hello all,
>
> On the commandline or in fpc.cfg, I can include search paths as:
>
> fpc test.pp -Fu./Componentes
>
> But ./Components has a world of subfolders. So I imagine I could
> indicates all subfolders as:
>
> fpc test.pp -Fu./Componentes/*
>
> It does not work, so I ask: is there a way to indicates subfolders
> recursively with -Fu?
You can, but you must quote the path, otherwise the shell will attempt to quote it:
fpc test.pp "-Fu./Componentes/*"
That should work.
If you look in the config file fpc.cfg generated by FPC, you will see that this technique is used there.
Michael.
More information about the fpc-pascal
mailing list