Forum > Options

saving compiled files in a different folder to source?

(1/2) > >>

dieselnutjob:
Hi
I am running Lazarus IDE v2.0.12 32 bit on Windows 10 64 bit.

Say I have a folder on my disk containing all of the source code for a project (a .ico, .lpi, .lpr, .lps, .res, .lfm and some .pas files).

How do I configure Lazarus so that when I "compile" or "run" it adds nothing to this source folder but instead uses a completely different folder to put all of its "stuff" and the resultant exe file?

thanks, DNJ

Handoko:
I haven't tried but I believe you can change it by:

Lazarus main menu > Project > Project Options > left panel: Compiler Options > Paths

dieselnutjob:
Project > Project Options > Compiler Options > Paths > Unit output directory

This had the effect of putting .o .or .ppu and .compiled files in the specified folder, however the .exe file still ends up in the same folder as the source code files

Handoko:
Tested on Lazarus 2.0.10 Linux, it works if I set the path and filename: Target file name (-o).

JuhaManninen:

--- Quote from: Handoko on April 13, 2021, 08:38:34 pm ---Tested on Lazarus 2.0.10 Linux, it works if I set the path and filename: Target file name (-o).

--- End quote ---
There is a related bug :
 **s://bugs.freepascal.org/view.php?id=38170
Somebody should study the code and fix it. Target was set to the next 2.2 release.

Navigation

[0] Message Index

[#] Next page

Go to full version