- 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.
37 lines
1.0 KiB
Bash
Executable File
37 lines
1.0 KiB
Bash
Executable File
#!/bin/sh
|
|
#------------------------------------------------------------------------------
|
|
cd ${0%/*} || exit 1 # Run from this directory
|
|
|
|
# Optional component: continue-on-error
|
|
# - may not have third-party installed
|
|
export WM_CONTINUE_ON_ERROR=true
|
|
|
|
# Parse arguments for compilation (at least for error catching)
|
|
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments
|
|
|
|
warning="==> skip ccmio"
|
|
|
|
if settings=$($WM_PROJECT_DIR/bin/foamEtcFile config.sh/ccmio)
|
|
then
|
|
. $settings
|
|
else
|
|
echo "$warning (no config.sh/ccmio settings)"
|
|
exit
|
|
fi
|
|
|
|
# Build libccmio (.a|.so) - use static linkage for fewer issues
|
|
$WM_THIRD_PARTY_DIR/makeCCMIO lib
|
|
|
|
: ${FOAM_EXT_LIBBIN:=/usr/lib$WM_COMPILER_LIB_ARCH} # Extra safety
|
|
export FOAM_EXT_LIBBIN
|
|
|
|
if [ -e $CCMIO_ARCH_PATH/include/libccmio/ccmio.h \
|
|
-a \( -e $CCMIO_ARCH_PATH/lib/libccmio.a -o -e $FOAM_EXT_LIBBIN/libccmio.so \) ]
|
|
then
|
|
wmake $targetType ccm26ToFoam
|
|
else
|
|
echo $warning
|
|
fi
|
|
|
|
#------------------------------------------------------------------------------
|