I want to run a command or script in the prebuild section of my project and then assign a define to it but can't work out how.
I tried entering my command as I would on the command line in the form $VAR='git describe' expecting to be able to pick up on VAR as a define in my code but on compile and I see the output:
= git describe
v1.11-2-g0dbc598
in the console but VAR is undefined, I don't think I'm going about this the correct way. Is there a defined way to get the output of an executable or script into a define?

