I'd like to import an environment variable into the build. In other IDEs I've been able to do it as a command-line parameter - e.g.: -D FROM_ENV=$(ENV_VARIABLE) or something like that.
The idea is to have an environment variable set ENV_VARIABLE=1234 Then in the code I could write: int i = FROM_ENV;
So far I can't find a way to do it in uVision. I've tried a few combinations in the menu PROJECT->OPTIONS FOR TARGET... dialog, on the C++ tab. There's a field of "Preprocessor symbols" and a "Misc Controls" field where it looks like I could maybe put command-line flags. But my experiments there aren't working.
Is this feature supported?