There is no “propagate to the environment” flag if i set the variable via a custom build step.
I do now specify it explicitly in the make arguments, as you suggested, and that works fine.
Thank you very much.
For the record, here is how to get the git revision as a preprocessor definition:
1. add a custom build step that sets the variable to the output of git rev-parse:
2. in the makefile settings add GITREV=$(GitRevision) to the preprocessor macros
3. add these addtional arguments to make: GitRevision=$(GitRevision)