ENH: streamline handling of static/dynamic libs in detection scripts

This commit is contained in:
Mark Olesen
2019-04-29 10:04:44 +02:00
parent 686e358982
commit bfd51ca7d4
17 changed files with 341 additions and 436 deletions

View File

@ -6,13 +6,13 @@ cd ${0%/*} || exit 1 # Run from this directory
#------------------------------------------------------------------------------
# Only build when the OpenFOAM libccm adaptor already exists
if [ -f $FOAM_LIBBIN/libccm$extLibso ]
if findLibrary "$FOAM_LIBBIN/libccm" > /dev/null
then
echo "==> build optional ccm conversion components"
wmake $targetType ccmToFoam
wmake $targetType foamToCcm
else
echo "==> skip optional ccm conversion components (no libccm$extLibso)"
echo "==> skip optional ccm conversion components (no libccm)"
fi
#------------------------------------------------------------------------------