WIP: [31.x] Backports

bitcoin/bitcoin: PR #36901

Backport verdict: Needs clarification

Fidelity could not be established from the available evidence.

Evidence:

Limitations:

Coverage details

Background

Ralph's summary of historical context for the behaviour affected by this change. The historical record reviewed here is incomplete.

Documented decisions

WarnAboutGlobalProperties was introduced as a sanity check supporting target-level encapsulation of common build flags, rather than as a general prohibition on every directory-scoped CMake operation.

The introducing commit explicitly couples the guard to core_interface, whose usage requirements carry common flags to project targets while allowing secp256k1 to obtain flags separately. The intended invariant behind the removed guard is controlled propagation of build settings through targets.

Source 1

The upstream replacement decision relied on newer CMake diagnostics becoming available in CI, not on every supported developer environment acquiring them.

The upstream proposal identifies non-target-directive diagnostics as new in CMake 4.5. The discussion explicitly frames removal of the custom check around having at least one CI job run CMake 4.5 or newer, cites Homebrew availability, and then records the decision to drop the module. This supplies the historical enforcement assumption that matters when transplanting the removal to a release branch.

Source 1 · Source 2 · Source 3