Environment Variables

General questions regarding the usage of CodeLite
astern
CodeLite Curious
Posts: 1
Joined: Mon Oct 28, 2013 9:50 pm
Genuine User: Yes
IDE Question: C++
Contact:

Environment Variables

Post by astern »

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?
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Environment Variables

Post by eranif »

If you set it in your .bashrc - make sure you start codelite from the terminal where you source'd it
something like:

Code: Select all

source ~/.bashrc
codelite&
I don't see a reason why it should not work
Eran
Make sure you have read the HOW TO POST thread
Post Reply