source: issm/oecreview/Archive/18296-19100/ISSM-18358-18359.diff@ 19102

Last change on this file since 19102 was 19102, checked in by Mathieu Morlighem, 10 years ago

NEW: added 18296-19100

File size: 2.5 KB
RevLine 
[19102]1Index: ../trunk-jpl/externalpackages/dakota/install-5.3.1-macosx64-snowleopard.sh
2===================================================================
3--- ../trunk-jpl/externalpackages/dakota/install-5.3.1-macosx64-snowleopard.sh (revision 18358)
4+++ ../trunk-jpl/externalpackages/dakota/install-5.3.1-macosx64-snowleopard.sh (revision 18359)
5@@ -22,7 +22,7 @@
6 export DAK_SRC=$ISSM_DIR/externalpackages/dakota/src
7 export DAK_BUILD=$ISSM_DIR/externalpackages/dakota/build
8 cp $DAK_SRC/cmake/BuildDakotaTemplate.cmake $DAK_SRC/cmake/BuildDakotaCustom.cmake
9-patch $DAK_SRC/cmake/BuildDakotaCustom.cmake configs/5.3.1/BuildDakotaCustom.cmake.patch
10+patch $DAK_SRC/cmake/BuildDakotaCustom.cmake configs/5.3.1/BuildDakotaCustom.cmake.mac.patch
11 patch $DAK_SRC/cmake/DakotaDev.cmake configs/5.3.1/DakotaDev.cmake.patch
12
13 #Apply patches
14@@ -32,10 +32,21 @@
15 patch src/src/NonDLocalReliability.cpp configs/5.3.1/NonDLocalReliability.cpp.patch
16 patch src/packages/pecos/src/pecos_global_defs.hpp configs/5.3.1/pecos_global_defs.hpp.patch
17
18+export BOOST_ROOT=$ISSM_DIR/externalpackages/boost/install
19+
20 #Configure dakota
21+# Set your local gcc compiler here
22 cd $DAK_BUILD
23-#cmake -D CMAKE_C_COMPILER=/usr/local/gfortran/bin/x86_64-apple-darwin10-gcc -D CMAKE_CXX_COMPILER=/usr/local/gfortran/bin/x86_64-apple-darwin10-g++ -D CMAKE_Fortran_COMPILER=/usr/local/gfortran/bin/x86_64-apple-darwin10-gfortran -D BOOST_ROOT=/opt/local -D Boost_INCLUDE_DIR=/opt/local/include -C $DAK_SRC/cmake/BuildDakotaCustom.cmake -C $DAK_SRC/cmake/DakotaDev.cmake $DAK_SRC
24-cmake -D CMAKE_C_COMPILER=/usr/local/gfortran/bin/x86_64-apple-darwin10-gcc -D CMAKE_CXX_COMPILER=/usr/local/gfortran/bin/x86_64-apple-darwin10-g++ -D CMAKE_Fortran_COMPILER=/usr/local/gfortran/bin/x86_64-apple-darwin10-gfortran -D LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH -D LDFLAGS="-L/usr/lib -lstdc++" -C $DAK_SRC/cmake/BuildDakotaCustom.cmake -C $DAK_SRC/cmake/DakotaDev.cmake $DAK_SRC
25+cmake -DBoost_NO_BOOST_CMAKE=TRUE \
26+ -DBoost_NO_SYSTEM_PATHS=TRUE \
27+ -DBOOST_ROOT:PATHNAME=$BOOST_ROOT \
28+ -DBoost_LIBRARY_DIRS:FILEPATH=${BOOST_ROOT}/lib \
29+ -DCMAKE_CXX_COMPILER=/usr/bin/g++ -DCMAKE_CC_COMPILER=/usr/bin/gcc \
30+ -DCMAKE_Fortran_COMPILER=/usr/local/gfortran/bin/x86_64-apple-darwin10-gfortran \
31+ -C $DAK_SRC/cmake/BuildDakotaCustom.cmake -C $DAK_SRC/cmake/DakotaDev.cmake $DAK_SRC
32+
33+#-DCMAKE_CXX_COMPILER=/usr/local/gfortran/bin/x86_64-apple-darwin10-g++ -DCMAKE_Fortran_COMPILER=/usr/local/gfortran/bin/x86_64-apple-darwin10-gfortran
34+
35 cd ..
36
37 #Compile and install dakota
Note: See TracBrowser for help on using the repository browser.