fpm icon indicating copy to clipboard operation
fpm copied to clipboard

Allow accessing VCS revision for preprocessor macro

Open awvwgk opened this issue 1 year ago • 0 comments

Being able to access the current VCS revision in the manifest and pass it to the project as macro would be useful to identify exactly which revision was build or installed in a version printout

[preprocess.cpp]
macros = [
  "REVISION={revision}",
]

The big draw back of this approach however would be the change in the compiler options after every commit leading to a full rebuild.

awvwgk avatar Oct 23 '22 08:10 awvwgk