Content originally posted in LPCWare by TheFallGuy on Wed Apr 27 00:51:50 MST 2016
The 'greyed out' is determined by the Indexer. You need to re-index your projects to fix this. To do this, right-click on the project and select Index->Rebuild.
When you rebuild a project, files are only rebuilt if the build system - make - knows it has changed. If a file changes, make know this and so can recompile it. If a compiler setting has changed, LPCXpresso knows about this and can force the build. The problem with Build Variables is that they are outside of both of these mechanisms and so things do not get rebuilt automatically. There may be a better way to do this, that does work as you want, but I don't know it.