Page MenuHomePhabricator

[CMAKE] Prevent a false positive warning due to CMP0116
ClosedPublic

Authored by Fabien on Aug 9 2021, 15:31.

Details

Reviewers
deadalnix
Group Reviewers
Restricted Project
Commits
rABC6f6cefb98b1e: [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.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable