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,101
    • Issues 4,101
    • 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
  • !6016

Help: Document special cases for if(IS_ABSOLUTE)

  • Review changes

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

The meaning of "absolute path" was previously assumed knowledge, but a number of special cases were left unspecified. The way some of these are handled differs to the way that cmake_path(IS_ABSOLUTE) works, so document those special cases so that the differing behavior between these two commands is clearly defined. Since cmake_path() was added in CMake 3.20 and this is about clarifying things that are closely related to the new command, I've set this MR to backport to the release branch.

There's a small drive-by fix for file(TO_NATIVE_PATH) as well, found while checking for other similar platform-specific behavior of commands that overlap with cmake_path() functionality.

Backport: release

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: doc-if-IS_ABSOLUTE