I'd like to have a Windows environment variable like MYINCDIR=c:\myincdir that specifies the root of a set of include directories and then use that variable within the -I command-line option of the compiler. I've tried these without success:
-I%MYINCDIR%\foo -I"%MYINCDIR%\foo" -I"%MYINCDIR%"\foo
to no avail.
Is there any way to pick up an environment variable into the -I option?
Thanks, Andrew
I don't think uVision supports Environment Variables.
The nearest thing, I thinkg, is its Key Sequences: http://www.keil.com/support/man/docs/uv4/uv4_ut_keysequence.htm - maybe that can serve your purpose?
Thanks for the tip about the key sequences. Even though I don't see a way to use those to solve the include path problem it's good to know they exist.
Andrew