Skip to content
Snippets Groups Projects

Suppress the warning "Manually-specified variables were not used by the project"

Merged Simon Praetorius requested to merge issue/cmake-unused-variable-warning into master

Summary

The script dunecontrol passes some variables to cmake that are used only conditionally. If they are not used then CMake will raise a warning. This is annoying and irritating for the users who might think they have done something wrong but haven't. The easiest way to suppress this warning is to actually use the variable. Therefore, I have introduced another internal CMake variable DUNE_MAYBE_UNUSED_VARIABLES that contains the evaluated unused variables.

Merge request reports

Pipeline #54671 passed

Pipeline: Dune Nightly Test

#54672

    Pipeline passed for c4c07260 on issue/cmake-unused-variable-warning

    Approval is optional

    Merged by Simon PraetoriusSimon Praetorius 2 years ago (Nov 1, 2022 8:12pm UTC)

    Merge details

    • Changes merged into master with 4fbc7219.
    • Deleted the source branch.

    Pipeline #54987 passed

    Pipeline: Dune Nightly Test

    #54990

      Pipeline passed for 4fbc7219 on master

      Activity

      Filter activity
      • Approvals
      • Assignees & reviewers
      • Comments (from bots)
      • Comments (from users)
      • Commits & branches
      • Edits
      • Labels
      • Lock status
      • Mentions
      • Merge request status
      • Tracking
      Please register or sign in to reply
      Loading