ENH: SOURCE_CGAL_VERSIONS_ONLY workaround replaced in OpenFOAM

Unset the _foamAddLib function prior to sourcing config.sh/CGAL

DOC: restriction about mixing ThirdParty and system gmp/mpfr
     does not apply anymore.
This commit is contained in:
mark
2016-06-17 16:59:53 +02:00
parent fde551c072
commit f09aa2ebdc

View File

@ -34,14 +34,13 @@
# simply specify a 'system' version. For example, # simply specify a 'system' version. For example,
# makeCGAL boost-system gmp-system # makeCGAL boost-system gmp-system
# #
# Mixing system and ThirdParty for gmp/mpfr is not supported.
#
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Get CGAL, boost and gmp/mpfr versions # Get CGAL, boost and gmp/mpfr versions
. $WM_PROJECT_DIR/etc/config.sh/functions . $WM_PROJECT_DIR/etc/config.sh/functions
_foamEval SOURCE_CGAL_VERSIONS_ONLY=yes \ unset _foamAddPath _foamAddLib _foamAddMan # get settings only
$($WM_PROJECT_DIR/bin/foamEtcFile config.sh/CGAL)
_foamSource $($WM_PROJECT_DIR/bin/foamEtcFile config.sh/CGAL)
_foamSource $($WM_PROJECT_DIR/bin/foamEtcFile config.sh/compiler) _foamSource $($WM_PROJECT_DIR/bin/foamEtcFile config.sh/compiler)
boostPACKAGE=${boost_version:-boost-system} boostPACKAGE=${boost_version:-boost-system}
@ -83,8 +82,6 @@ To override this behaviour (and use the system boost and/or gmp/mpfr),
simply specify a 'system' version. For example, simply specify a 'system' version. For example,
$Script boost-system gmp-system $Script boost-system gmp-system
Note: mixing system and ThirdParty for gmp/mpfr is not supported.
USAGE USAGE
exit 1 exit 1
} }