Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • O ogs
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 71
    • Issues 71
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 24
    • Merge requests 24
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ogs
  • ogs
  • Merge requests
  • !3950

[cmake] Added option OGS_INSTALL_PETSC to install petsc into CMAKE_INSTALL_PREFIX

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Lars Bilke requested to merge bilke/ogs:install-petsc into master Jan 21, 2022
  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 2

E.g.:

cmake -S . --preset release-petsc \
  -DCMAKE_INSTALL_PREFIX=../install/release-petsc \
  -DOGS_INSTALL_PETSC=ON
cmake --build --preset release-petsc -t install

Please note that currently the install location is not relocatable! Absoulte path to petsc-lib has to be replaced with an rpath equivalent.

On Mac this works:

install_name_tool -change /Users/bilke/code/ogs/install/release-petsc/lib/libpetsc.3.11.dylib @rpath/libpetsc.3.11.dylib ./ogs

TODO: Linux, maybe with http://manpages.ubuntu.com/manpages/bionic/man1/patchelf.1.html

  1. Feature description was added to the changelog
  2. Tests covering your feature were added? No but this was tested in the wild.
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: install-petsc