Forum > Options
saving compiled files in a different folder to source?
Gustavo 'Gus' Carreno:
Hey dieselnutjob,
I usually have all my source files under:
Project-Folder/src
So all my projects under Project Options(CTRL+SHIFT+F11)->Paths have what you can see on the image.
Pay attention to (-Fu) and (-o), please
This will put all the compiled intermediate files under:
Project-Folder/bin/lib/CPU-OS
And the executable/binary under
Project-Folder/bin/
Hope this helps
Cheers,
Gus
Dzandaa:
Hi,
This is my configuration:
in: Lazarus main menu > Project > Project Options > left panel: Compiler Options > ... (Create Debug and Release)
In (Target file name -o) for Debug
bin\Debug\$(TargetCPU)-$(TargetOS)\project1
In (Target file name -o) for Release
bin\Release\$(TargetCPU)-$(TargetOS)\project1
And Click "Set compiler Options as default"
This will create separate directory for "bin/Debug/Os" and "bin/Release/OS"
Example:
projet1
bin
Debug
x86_64-linux\projet1
x86_64-win64\projet1.exe
bin
Release
x86_64-linux\projet1
x86_64-win64\projet1.exe
Easier to compile for different O.S.
Hope this help.
B->
Navigation
[0] Message Index
[*] Previous page