Configure working directory when running program
-
- CodeLite Curious
- Posts: 2
- Joined: Mon Jun 27, 2016 1:29 pm
- Genuine User: Yes
- IDE Question: c++
- Contact:
Configure working directory when running program
If I use build/run, the program always starts in the directory of the executable. Is it possible to change that. More precisely, I want working directory to be the same as the project root directory.
-
- CodeLite Plugin
- Posts: 819
- Joined: Wed Sep 03, 2008 7:26 pm
- Contact:
Re: Configure working directory when running program
Hi,
Look in Project Settings > General tab. In the Execution section there's a Working Directory field. I think you'll find that's currently set to $(IntermediateDirectory), but you can change it to whatever you wish.
Regards,
David
Look in Project Settings > General tab. In the Execution section there's a Working Directory field. I think you'll find that's currently set to $(IntermediateDirectory), but you can change it to whatever you wish.
Regards,
David
-
- CodeLite Curious
- Posts: 2
- Joined: Mon Jun 27, 2016 1:29 pm
- Genuine User: Yes
- IDE Question: c++
- Contact:
Re: Configure working directory when running program
Nice. I switched from Code::Blocks because its corresponding function appears to be broken on Ubuntu 16.04. But I also got a Clang-based parser which is very nice.