CMake warnings about deprecated behaviors
Open
Beginner friendly
Nobody has claimed this yet.
sustainment
- Dominant language
- C
- Stars
- 14
- Forks
- 9
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 33
Description
There are several warnings during the prep step similar to the following. The config should be updated to avoid these.
CMake Warning (dev) at cmake/CodeCoverage.cmake:496 (add_custom_command):
At least one COMMAND must be given.
Policy CMP0175 is not set: add_custom_command() rejects invalid arguments.
Run "cmake --help-policy CMP0175" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with cmake/CodeCoverage.cmake around line 496 and inspect the add_custom_command invocation that emits CMP0175. Run the repository's prep step with CMake to reproduce the warning, then update the configuration so deprecated-behavior warnings are gone and rerun the prep step to verify.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 76/100