SFTtech/openage

Trigger reconfigure when git commit hash changes

Open

#381 opened on Sep 15, 2015

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Python (12,130 stars) (1,135 forks)batch import
area: buildsystemgood first issueimprovementjust do it

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.

Contributor guide