Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
CMake
CMake
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,225
    • Issues 3,225
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 13
    • Merge Requests 13
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • External Wiki
    • External Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMake
  • CMakeCMake
  • Merge Requests
  • !3052

Merged
Opened Mar 02, 2019 by Craig Scott@craig.scottMaintainer

Help: clarify DESTINATION and TYPE usage for install()

  • Overview 14
  • Commits 1
  • Pipelines 2
  • Changes 1

Corrects a few inaccuracies and tightens up wording around the new default destination and file type functionality of the install() command. Key points:

  • Updated the synopsis to remove the DESTINATION keywords now that the logic around whether they are needed is less straightforward. Since TYPE can now be used instead of DESTINATION in some cases, having DESTINATION in the synopsis could be confusing. All forms shown in the synopsis now have consistency in only showing the first keyword and deferring all other options to the detailed sections.
  • Either DESTINATION or TYPE must be provided for install(FILES) and install(DIRECTORY). The command signatures could have been interpreted as implying you could omit both.
  • If non-standard destinations are specified, they should still ideally start with one of the GNUInstallDirs variables, not just simply contain one.
  • Prefer "project" to "you" and similar wording.
Assignee
Assign to
Reviewer
Request review from
3.14.0
Milestone
3.14.0 (Past due)
Assign milestone
Time tracking
Reference: cmake/cmake!3052
Source branch: docs-install-destinations