Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • L libglvnd
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 24
    • Issues 24
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 8
    • Merge requests 8
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • glvnd
  • libglvnd
  • Merge requests
  • !261

meson: use required : feature option correclty

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Dylan Baker requested to merge dbaker/libglvnd:submit/fix-get-option-x11 into master Dec 06, 2021
  • Overview 1
  • Commits 1
  • Pipelines 1
  • Changes 1

The code here is a complicated way to write exactly the same thing. If get_option('x11') returns disabled, ie -Dx11=disabled then dependency() short circuits and returns a not found object (just like dependency('', required : false), but with the correct name for error messages).

Edited Dec 06, 2021 by Dylan Baker
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: submit/fix-get-option-x11