Working directory for pre and post build

General questions regarding the usage of CodeLite
DSP_Programmer
CodeLite Veteran
Posts: 63
Joined: Mon Apr 06, 2009 10:43 am
Contact:

Working directory for pre and post build

Post by DSP_Programmer »

Hello Eran,

currently it seems to me, that the post and pre build commands start within the same working directory as "custom build" working directory if custom build is enabled. For my needs, I would need to start within separate working directories for custom build, pre and post commands. Is there anything I can do about this or must this be changed within the codelite sources?
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Working directory for pre and post build

Post by eranif »

The working directory is set to the working directory of the project.
Other than that you can:
- wrap the post/pre build command with a command which does something like 'cd /to/some/path && execute_cmd'

OR change codelite sources (patch is always welcomed)

Eran
Make sure you have read the HOW TO POST thread
DSP_Programmer
CodeLite Veteran
Posts: 63
Joined: Mon Apr 06, 2009 10:43 am
Contact:

Re: Working directory for pre and post build

Post by DSP_Programmer »

eranif wrote: - wrap the post/pre build command with a command which does something like 'cd /to/some/path && execute_cmd'
Thanks for the hint, this does the job.
Post Reply