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 15
    • Merge requests 15
  • 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
  • !6768

Help: Clarify behavior of if() basic expressions

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Craig Scott requested to merge craig.scott/cmake:doc-if-env-var into master Nov 28, 2021
  • Overview 11
  • Commits 2
  • Pipelines 3
  • Changes 1

Changes are in response to the following forum discussion: https://discourse.cmake.org/t/if-something-strikes-again/4330

The behavior of if(ENV{some_var}) is potentially unexpected. It is also easy to miss the effect of CMP0054 when the expression is a quoted string.

Backport: release
Topic-rename: doc-if-basic-expressions

Edited Dec 01, 2021 by Brad King
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: doc-if-env-var