Environment Variables
-
- CodeLite Curious
- Posts: 1
- Joined: Mon Oct 28, 2013 9:50 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Environment Variables
I would like to setup a define from outside CodeLite that I can use as a macro within the Environment section. For instance I would like to define something like PROJECT_HOME=/home/user/project within my .bashrc or as a command line parameter to CodeLite. Within the CodeLite Environment Window I would like to use HOME_DIR=$(PROJECT_HOME)/subproject/proj. It doesn't seem to be working in a code pull of 5.3 and my custom makefile isn't ending up with HOME_DIR=/home/user/project/subproject/proj. Is there a better way to do this or a way that works?
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Environment Variables
If you set it in your .bashrc - make sure you start codelite from the terminal where you source'd it
something like:
I don't see a reason why it should not work
Eran
something like:
Code: Select all
source ~/.bashrc
codelite&
Eran
Make sure you have read the HOW TO POST thread