I've tried to add a macro definition to FX Composer in my project settings using the Project > HLSL/CG > Compiler Options fields. In the two HLSL fields I have /DMYPROJECT and for Cg -DMYPROJECT.
When compiling Cg shaders, this works as expected, but I cannot get it to work for HLSL. Using the same option in command line on fxc.exe works.
Here's a snippet of the code I'm using to test;
#ifndef MYPROJECT
#error ABC
#endif
What am I missing?