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
Details
Details
- Reviewers
deadalnix - Group Reviewers
Restricted Project - Commits
- rABC6f6cefb98b1e: [CMAKE] Prevent a false positive warning due to CMP0116
With CMake >= 3.20
ninja
Check the warning is gone.
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- cmake_cmp0116
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 16290 Build 32447: Build Diff build-diff · build-clang · build-debug · build-clang-tidy · build-without-wallet Build 32446: arc lint + arc unit