Page 1 of 1

Environment variable for Include Path

Posted: Fri May 17, 2013 4:33 pm
by ColinTaylor
Windows 7 and Windows 8
Codelite v5.1, installed from "codelite-5.1.0-mingw4.7.1.exe"
WxWidgets installed from "wxWidgets-2.9.4.zip"

Is it possible to use environment variables in the "Include Path" and "Library Path" for Project Settings?

If so how do you do it?

I've tried going via the Codelite Settings->Environment Variables and adding (e.g.)

Code: Select all

CRYPTOPPINCLUDE=E:\Dev\CryptoPP-5.6.2\include
And then setting the Include Path to things like

Code: Select all

$(CRYPTOPPINCLUDE)
and other similar variations but nothing so far has worked.

I've also tried setting Windows Environment variables and using those in the Include Path but that hasn't worked either.

Apologies if this is in the documentation, I couldn't see it in there.

Thanks a lot, Colin

Re: Environment variable for Include Path

Posted: Fri May 17, 2013 6:26 pm
by eranif
ColinTaylor wrote:Is it possible to use environment variables in the "Include Path" and "Library Path" for Project Settings?
Yes
ColinTaylor wrote:If so how do you do it?
Exactly how you described it here...

For me adding $(CRYPTOPPINCLUDE) to the Project Settings -> Compiler -> Include Paths
added the path

Can you post your generated Makefile?
Eran

Re: Environment variable for Include Path

Posted: Fri May 17, 2013 6:37 pm
by ColinTaylor
:oops: I've just tried this again, and it also works for me now. I must have had some other mistake in the build file!
Thanks for replying