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.

貢獻者指南