HomePhabricator

[CMAKE] Prevent a false positive warning due to CMP0116

Description

[CMAKE] Prevent a false positive warning due to CMP0116

Summary:
The new policy doesn't know how to handle DEPFILE in custom command and warns if the call is located in a subdirectory, independenty of whether the code is compliant with the new policy or not. Our code is compliant, so just set this policy to NEW to remove the warning.
See https://gitlab.kitware.com/cmake/cmake/-/issues/21959#note_925225

Test Plan:
With CMake >= 3.20

ninja

Check the warning is gone.

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

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

Details

Provenance
FabienAuthored on Aug 9 2021, 15:31
FabienPushed on Aug 9 2021, 19:43
Reviewer
Restricted Project
Differential Revision
D9859: [CMAKE] Prevent a false positive warning due to CMP0116
Parents
rABCc3c48f942d23: Bump version to 0.23.10
Branches
Unknown
Tags
Unknown