Request for the thirdparty library version handling improvement
I am using Lmod (environment module) for handling OpenFOAM-plus. FYI, my Lmod file is attached.
Lmod comes in handy for OpenFOAM because it can manipulate environment variable dynamically as needed. Most of the OpenFOAM behavior could be handled by Lmod without modifying bashrc and config.sh/* except thirdparty libraries.
The thirdparty libraries in ThirdParty-plus are referring to the script in OpenFOAM-plus/config.sh/* to get version information. Thus, the script file should be modified when building and installing OpenFOAM with custom thirdparty library version for the first time.
So I have a preference to have a way to get version information from environment variable without breaking OpenFOAM echo-system when it is possible.
I made some modification for the thirdparty library configurations in OpenFOAM/etc/config.sh as attached and hope this patch be reflected for better usability.