Correct handling of the CGAL version variable for makeCGAL in ThirdParty

This commit is contained in:
Henry Weller 2016-07-01 16:22:28 +01:00
parent 52233c3848
commit e9a1716474
4 changed files with 11 additions and 6 deletions

View file

@ -11,10 +11,6 @@ wmake -all $targetType snappyHexMesh
if [ -n "$FOAMY_HEX_MESH" ]
then
# Get CGAL and boost versions
. $WM_PROJECT_DIR/etc/config.sh/functions
_foamEval $($WM_PROJECT_DIR/bin/foamEtcFile config.sh/CGAL)
foamyMesh/Allwmake $targetType $*
fi

View file

@ -172,6 +172,11 @@ _foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config.sh/paraview`
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config.sh/ensight`
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config.sh/gperftools`
if [ ! -z "$FOAMY_HEX_MESH" ]
then
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config.sh/CGAL`
fi
# Clean environment paths again. Only remove duplicates
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View file

@ -38,7 +38,7 @@
boost_version=boost-system
cgal_version=cgal-system
#cgal_version=CGAL-4.8
#cgal_version=CGAL-4.8.1
thirdPartyPath=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER
@ -61,6 +61,6 @@ then
echo " $cgal_version at $CGAL_ARCH_PATH" 1>&2
fi
unset boost_version cgal_version thirdPartyPath
unset thirdPartyPath
#------------------------------------------------------------------------------

View file

@ -218,6 +218,10 @@ _foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config.csh/mpi`
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config.csh/paraview`
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config.csh/ensight`
if ( ($?FOAMY_HEX_MESH) ) then
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config.csh/CGAL`
endif
# Clean environment paths again. Only remove duplicates
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~