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 72
    • Issues 72
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 28
    • Merge requests 28
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • 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

Merged
Created Jan 21, 2022 by Lars Bilke@bilkeOwner2 of 2 tasks completed2/2 tasks

[cmake] Added option OGS_INSTALL_PETSC to install petsc into CMAKE_INSTALL_PREFIX

  • 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