better solution to create/update src/OPALrevision.h
The current solution to create src/OPALrevision.h
fails if the OPAL sources are not inside a git repository. In this case the macro GIT_VERSION
is defined as empty string. A more reliable solution would be to
- creating
src/OPALrevision.h
withmake
instead ofcmake
- not overwriting
src/OPALrevision.h
if the OPAL sources are not in a git repository