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,298
    • Issues 3,298
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 9
    • Merge Requests 9
  • 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
  • Issues
  • #19023

Closed
Open
Created Mar 07, 2019 by Brad King@brad.kingOwner

cmake: offer command-line abstraction for install scripts

Currently one may use cmake --build . --target install to build and install.

!3069 (merged) proposes a cmake --install . variant. Discussion there raised a few points that would be better worked out in an issue first, so I'm opening this.

Concerns include:

  • cmake --install . is a sensible abstraction over the current cmake ... -P cmake_install.cmake support.
  • When does installation also build?
  • Re-linking (make preinstall) may be needed before directly invoking cmake_install.cmake scripts.
  • The Ninja generator does not provide the preinstall target. This is an existing limitation that should be worked out regardless of the rest of this issue.
Edited Mar 07, 2019 by Brad King
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None