Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2025-02

Feature Request

6 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Amir

Hi team,

? Currently, in Lazarus, to include a path in my compiler search path, I choose a file in that path and add the file to my project (Shift-F11). This way I would update the search path but add an irrelevant/unused file to my lpr file. Can we add a way to just add the path of the current file to the project's search path, without adding the file itself.

Best,
Amir

Reply by email

Toan Pham
to Amir

As far as I know, you can add this line to the fpc config file, then remove that file totally from your project. But then you have to reference it when you use it in one of the units in the project so that the compiler knows about it to compile it as well.

/etc/fpc.cfg

-Fu/path/to/project/where/myunit.pas/file/lives

On Thu, Feb 13, 2025 at 2:20?PM Amir via lazarus <

Show quoted text 19 lines
wrote: Hi team, Currently, in Lazarus, to include a path in my compiler search path, I choose a file in that path and add the file to my project (Shift-F11). This way I would update the search path but add an irrelevant/unused file to my lpr file. Can we add a way to just add the path of the current file to the project's search path, without adding the file itself. Best, Amir -- _______________________________________________ lazarus mailing list https://lists.lazarus-ide.org/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20250213/a9fedfb1/attachment.htm>

Reply by email

Martin Frb
to Amir: ? Currently, in Lazarus, to include a path in my compiler search path, I choose a file in…
Amir wrote 8 lines
Hi team, ? Currently, in Lazarus, to include a path in my compiler search path, I choose a file in that path and add the file to my project (Shift-F11). This way I would update the search path but add an irrelevant/unused file to my lpr file. Can we add a way to just add the path of the current file to the project's search path, without adding the file itself.

Menu: Project > Project Options
Page: Path

And there you can add them

Reply by email

Amir
to Martin Frb

But it is not as easy as openning the file and pressing Shift-F11.

Best,
Amir

Martin Frb wrote 14 lines
On 13/02/2025 20:20, Amir via lazarus wrote: > Hi team, > > ? Currently, in Lazarus, to include a path in my compiler search > path, I choose a file in that path and add the file to my project > (Shift-F11). This way I would update the search path but add an > irrelevant/unused file to my lpr file. Can we add a way to just add > the path of the current file to the project's search path, without > adding the file itself. Menu: Project > Project Options Page: Path And there you can add them

Reply by email

Juha Manninen
to Amir

It is easy. You can browse the path with the button on the right.

pe 14. helmik. 2025 klo 6.39 Amir via lazarus

Show quoted text 28 lines
But it is not as easy as openning the file and pressing Shift-F11. Best, Amir On 2/13/25 3:21 PM, Martin Frb via lazarus wrote: > On 13/02/2025 20:20, Amir via lazarus wrote: >> Hi team, >> >> Currently, in Lazarus, to include a path in my compiler search >> path, I choose a file in that path and add the file to my project >> (Shift-F11). This way I would update the search path but add an >> irrelevant/unused file to my lpr file. Can we add a way to just add >> the path of the current file to the project's search path, without >> adding the file itself. > > Menu: Project > Project Options > Page: Path > > And there you can add them -- _______________________________________________ lazarus mailing list https://lists.lazarus-ide.org/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20250214/3d9bf1b8/attachment.htm>

Reply by email

Mattias Gaertner
to Amir: ? Currently, in Lazarus, to include a path in my compiler search path, I choose a file in…
Amir wrote 7 lines
Hi team, ? Currently, in Lazarus, to include a path in my compiler search path, I choose a file in that path and add the file to my project (Shift-F11). This way I would update the search path but add an irrelevant/unused file to my lpr file. Can we add a way to just add the path of the current file to the project's search path, without adding the file itself.

I'm confused: You have a source directory with relevant files, but you need to open an irrelevant file to add the unit path?

Mattias

Reply by email