diff --git a/etc/config.csh/setup b/etc/config.csh/setup index 842efd0e6bc9a6335a9c0b6595b5f8df819e49c6..a1152d8a74da3d6822e31d211882560e467056f0 100644 --- a/etc/config.csh/setup +++ b/etc/config.csh/setup @@ -40,11 +40,14 @@ source "$WM_PROJECT_DIR/etc/config.csh/functions" # It may also not be required at all, in which case a dummy "ThirdParty" # directory inside of the OpenFOAM project directory. # -# Note: only accept if the directory exists and contains a "Allwmake" file +# Note: only accept if the directory exists and contains either +# a "Allwmake" file (source) or a "platforms" directory (runtime-only) setenv WM_THIRD_PARTY_DIR set foundDir='' + _foamEcho "Locating ThirdParty directory" + foreach foamDir (\ "$WM_PROJECT_DIR/ThirdParty" \ "$prefixDir/ThirdParty-$WM_PROJECT_VERSION" \ diff --git a/etc/config.sh/setup b/etc/config.sh/setup index 423605ce920c9863926b1bf7d344e74c98aef18a..40ab0012f72129d64fbcd3b46d491f62869ae529 100644 --- a/etc/config.sh/setup +++ b/etc/config.sh/setup @@ -41,7 +41,9 @@ unset WM_SHELL_FUNCTIONS # It may also not be required at all, in which case a dummy "ThirdParty" # directory inside of the OpenFOAM project directory. # -# Note: only accept if the directory exists and contains a "Allwmake" file +# Note: only accept if the directory exists and contains either +# a "Allwmake" file (source) or a "platforms" directory (runtime-only) + export WM_THIRD_PARTY_DIR unset foundDir