Skip to content

Use alternative etc config locations #167

@olesenm

Description

@olesenm

As of OpenFOAM-v2006 (commit 5ba2cbc5) there is support for specifying alternative config file locations (actually for an alternative OpenFOAM etc/ layer).
This was specifically added to handle systems like MacOS and mingw cross-compilation.

For this you would probably want to try something like this (pseudo-code):

  • cd openfoam-project-dir
  • mkdir -p "etc-macos/config.sh"
  • echo 'export FOAM_CONFIG_ETC="etc-macos"' >> etc/prefs.sh
  • copy/rsync etc/config.sh/{adios2,boost,CGAL, ....} to etc-macos/config.sh
  • run bin/tools/foamConfigurePaths (can specify the -etc=... option for more certainty) and the rest of your configure.sh file

This way most of the changes will be encapsulated within the directory: making the changes more transparent and preserving them after a git update of OpenFOAM.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions