mirror of
https://github.com/OpenFOAM/ThirdParty-6.git
synced 2025-12-08 06:57:43 +00:00
makeCGAL: Correct toolset name to build Boost with Intel compiler
Resolves bug-report https://bugs.openfoam.org/view.php?id=2838
This commit is contained in:
11
makeCGAL
11
makeCGAL
@ -3,7 +3,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2012-2018 OpenFOAM Foundation
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -43,7 +43,7 @@
|
|||||||
_foamEval $($WM_PROJECT_DIR/bin/foamEtcFile config.sh/CGAL)
|
_foamEval $($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)
|
||||||
|
|
||||||
cgalPACKAGE=${cgal_version:-CGAL-4.8.1}
|
cgalPACKAGE=${cgal_version:-CGAL-4.10}
|
||||||
boostPACKAGE=${boost_version:-boost-system}
|
boostPACKAGE=${boost_version:-boost-system}
|
||||||
gmpPACKAGE=${gmp_version:-gmp-system}
|
gmpPACKAGE=${gmp_version:-gmp-system}
|
||||||
mpfrPACKAGE=${mpfr_version:-mpfr-system}
|
mpfrPACKAGE=${mpfr_version:-mpfr-system}
|
||||||
@ -144,6 +144,11 @@ then
|
|||||||
boostInc="$BOOST_ARCH_PATH/include"
|
boostInc="$BOOST_ARCH_PATH/include"
|
||||||
boostLib="$BOOST_ARCH_PATH/lib"
|
boostLib="$BOOST_ARCH_PATH/lib"
|
||||||
|
|
||||||
|
toolset="$WM_CC"
|
||||||
|
if [ $WM_COMPILER == "Icc" ]; then
|
||||||
|
toolset=intel
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Starting build: boost"
|
echo "Starting build: boost"
|
||||||
(
|
(
|
||||||
cd $BOOST_SOURCE_DIR || exit 1
|
cd $BOOST_SOURCE_DIR || exit 1
|
||||||
@ -154,7 +159,7 @@ then
|
|||||||
--prefix=$BOOST_ARCH_PATH \
|
--prefix=$BOOST_ARCH_PATH \
|
||||||
--with-libraries=thread \
|
--with-libraries=thread \
|
||||||
--with-libraries=system \
|
--with-libraries=system \
|
||||||
&& ./bjam toolset=$WM_CC -j $WM_NCOMPPROCS install \
|
&& ./bjam toolset=$toolset -j $WM_NCOMPPROCS install \
|
||||||
&& echo "Built: boost"
|
&& echo "Built: boost"
|
||||||
) || {
|
) || {
|
||||||
echo "Error building: boost"
|
echo "Error building: boost"
|
||||||
|
|||||||
Reference in New Issue
Block a user