diff --git a/applications/utilities/mesh/generation/Allwmake b/applications/utilities/mesh/generation/Allwmake index ea140785b99f5cfa8dccb8d76a602ed2ba6c0b44..9749745acd13f1f87299dc4af4c58ae509118b74 100755 --- a/applications/utilities/mesh/generation/Allwmake +++ b/applications/utilities/mesh/generation/Allwmake @@ -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 diff --git a/etc/bashrc b/etc/bashrc index f05fcea88f09a12a421dbd499b7f57698e10c935..4df0d6c3754570a9faa2409497a183ae608dec90 100644 --- a/etc/bashrc +++ b/etc/bashrc @@ -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 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/etc/config.sh/CGAL b/etc/config.sh/CGAL index e61f8c82390867d35782bb99c42319106d9eef9f..6a942592239139f9c4e6cfa58efbe483bd9051c4 100644 --- a/etc/config.sh/CGAL +++ b/etc/config.sh/CGAL @@ -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 #------------------------------------------------------------------------------ diff --git a/etc/cshrc b/etc/cshrc index 22537fc3269fee1190f26c6c14af4add483e278f..c2f17948b131b0e46c373febbfac1ffe6a5ea735 100644 --- a/etc/cshrc +++ b/etc/cshrc @@ -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 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~