HomePhabricator

[CMAKE] Always build obj/build.h

Description

[CMAKE] Always build obj/build.h

Summary:
The file needs to be always generated.
This requires the use of a custom_target (always out of date) rather
than a custom_command.

Test Plan:

mkdir buildcmake && cd buildcmake
cmake -GNinja ..
ninja

Check the buildcmake/obj/build.h file content matches your current
commit hash.
Amend the commit message then run ninja again: the
buildcmake/obj/build.h should be updated accordingly.

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D4111

Details

Provenance
FabienAuthored on Sep 19 2019, 11:08
FabienPushed on Sep 20 2019, 09:59
Reviewer
Restricted Project
Differential Revision
D4111: [CMAKE] Always build obj/build.h
Parents
rSTAGING62ec58375ca4: Revert change to ActivateBestChain() comments made in D1182
Branches
Unknown
Tags
Unknown
References
tag: phabricator/base/13076, tag: phabricator/base/13034, tag: phabricator/base/13033, tag: phabricator/base/13032, tag: phabricator/base/13023