SFTtech/openage

Trigger reconfigure when git commit hash changes

Open

#381 ouverte le 15 sept. 2015

Voir sur GitHub
 (3 commentaires) (0 réactions) (0 assignés)Python (1 135 forks)batch import
area: buildsystemgood first issueimprovementjust do it

Métriques du dépôt

Stars
 (12 130 stars)
Métriques de merge PR
 (Merge moyen 9j 23h) (1 PR mergée en 30 j)

Description

When the value of git describe changes, we should trigger a reconfigure when typing make. This ensures the version generated to config.h matches with the actual repository version.

The "dirty" solution would be checking for the version each time, something better would be a update watch on some file in ./.git/, but maybe you have a better idea how cmake may detect a changed HEAD efficiently.

Guide contributeur