SFTtech/openage

Trigger reconfigure when git commit hash changes

Open

#381 创建于 2015年9月15日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)Python (12,130 star) (1,135 fork)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.

贡献者指南