ahaupt

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: preprocessor define with content of a build variable #6895
    ahaupt
    Participant

    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)

Viewing 1 post (of 1 total)