NASA-AMMOS / NASA-AMMOS/BSL

CMake warnings about deprecated behaviors

Open Beginner friendly
#282 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.