Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • CMake CMake
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4,105
    • Issues 4,105
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMakeCMake
  • CMakeCMake
  • Merge requests
  • !7124

CMakeDependentOption: improve documentation

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Ben Boeckel requested to merge ben.boeckel/cmake:CMakeDependentOption-doc-improvement into master Mar 29, 2022
  • Overview 6
  • Commits 1
  • Pipelines 3
  • Changes 1

This makes it far clearer that <depends> is a list up front instead of burying the lede because a list is generally "trivially true" in CMake[1]. Also clarify that <force> is only available as a local variable and if queried outside of the "scope" of the cmake_dependent_option call, will get the stored user cache value.

[1] The exception being when the last entry ends in -NOTFOUND.

Suggested-by: Rui Oliveira


Backport: release

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: CMakeDependentOption-doc-improvement