SFTtech/openage

Trigger reconfigure when git commit hash changes

Open

#381 opened on 2015年9月15日

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

説明

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.

コントリビューターガイド