mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: eliminate most use of _foamSource outside of the etc/ hierarchy
This commit is contained in:
@ -1,18 +1,23 @@
|
||||
#!/bin/sh
|
||||
# Build optional components (eg, may depend on third-party libraries)
|
||||
#------------------------------------------------------------------------------
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
# Optional component: (eg, may depend on third-party libraries)
|
||||
|
||||
# Parse arguments for compilation (at least for error catching)
|
||||
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments
|
||||
|
||||
. $WM_PROJECT_DIR/etc/config.sh/functions
|
||||
_foamSource $($WM_PROJECT_DIR/bin/foamEtcFile config.sh/ccmio)
|
||||
|
||||
# Link with static libccmio only (possibly fewer issues)
|
||||
|
||||
warning="==> skip optional libccm adapter"
|
||||
|
||||
if settings=$($WM_PROJECT_DIR/bin/foamEtcFile config.sh/ccmio)
|
||||
then
|
||||
. $settings
|
||||
else
|
||||
echo "$warning (no config.sh/ccmio settings)"
|
||||
exit
|
||||
fi
|
||||
|
||||
|
||||
# Link with static libccmio only (possibly fewer issues)
|
||||
if [ -e $CCMIO_ARCH_PATH/include/libccmio/ccmio.h \
|
||||
-a -e $CCMIO_ARCH_PATH/lib/libccmio.a ]
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user