Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • O ogs
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 112
    • Issues 112
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 43
    • Merge requests 43
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ogsogs
  • ogs
  • Merge requests
  • !4494

[cmake] Cache external dependencies in CPM_SOURCE_CACHE.

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Lars Bilke requested to merge bilke/ogs:cache-ext into master Feb 22, 2023
  • Overview 3
  • Commits 2
  • Pipelines 3
  • Changes 4

If CPM_SOURCE_CACHE is set and outside the build directory.

Full build is cached in $CPM_SOURCE_CACHE/_ext/[NAME]/[HASH]. Caching only sources did not work.

Hash is based on all parameters given to build the dependency (version info, cmake options). May fail if build binaries become incompatible with newer OGS builds, maybe after updating the system. In that case just delete $CPM_SOURCE_CACHE/_ext and create a fresh OGS build.

  1. Feature description was added to the changelog
  2. Tests covering your feature were added?
  3. Any new feature or behavior change was documented?
Edited Feb 22, 2023 by Lars Bilke
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: cache-ext