Using enviroment variables in project settings
If you want to setup an environment variable for your include or library paths, you can use the following syntax where you would specify the path:
to expand the value of the environment variable ENV_VAR. If the environment variable does not exist. it is replaced by an empty string.
Thus, if the environment variable was set as follows
and you wanted to add 'MY_STUFF/includes' to your include paths you would use
in your Directories setting, which would expand to:
Note that either '/' or '\' can be used as path seperators.
In most circumstances it may be more sensible to create, for example, a library project within your workspace to contain files that you might otherwise reference using environment variables. For details of how to reference files in library projects, please see the FAQ Using library projects from your own projects.