SFTtech/openage

Trigger reconfigure when git commit hash changes

Open

#381 aberto em 15 de set. de 2015

Ver no GitHub
 (3 comments) (0 reactions) (0 assignees)Python (1.135 forks)batch import
area: buildsystemgood first issueimprovementjust do it

Métricas do repositório

Stars
 (12.130 stars)
Métricas de merge de PR
 (Mesclagem média 9d 23h) (1 fundiu PR em 30d)

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.

Guia do colaborador