- just check WM_PROJECT_DIR instead. - provide a fallback value when FOAM_EXT_LIBBIN might actually be needed. Only strictly need FOAM_EXT_LIBBIN for scotch/metis decomposition, and when these are actually supplied by ThirdParty. All other ThirdParty dependencies are referenced by BOOST_ARCH_PATH etc. Can therefore drop the FOAM_EXT_LIBBIN dependency for VTK-related things, which do not use scotch/metis anyhow.
23 lines
823 B
Bash
Executable File
23 lines
823 B
Bash
Executable File
#!/bin/sh
|
|
# Run from OPENFOAM applications/ directory only
|
|
cd ${0%/*} && wmakeCheckPwd "$WM_PROJECT_DIR/applications" 2>/dev/null || {
|
|
echo "Error (${0##*/}) : not located in \$WM_PROJECT_DIR/applications"
|
|
echo " Check your OpenFOAM environment and installation"
|
|
exit 1
|
|
}
|
|
[ -d "$WM_PROJECT_DIR" -a -f "$WM_PROJECT_DIR/etc/bashrc" ] || {
|
|
echo "Error (${0##*/}) : WM_PROJECT_DIR appears to be incorrect"
|
|
echo " Check your OpenFOAM environment and installation"
|
|
exit 1
|
|
}
|
|
|
|
# Parse arguments for library compilation
|
|
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
wmake -all $targetType solvers
|
|
wmake -all $targetType utilities
|
|
|
|
#------------------------------------------------------------------------------
|