-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.sh
executable file
·38 lines (31 loc) · 1.23 KB
/
configure.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash -e
SYSTEM_COMPILER="Clang"
ADIOS_PATH='`brew --prefix adios2`'
BOOST_PATH='`brew --prefix boost`'
CGAL_PATH='`brew --prefix cgal\@4`'
CMAKE_PATH='`brew --prefix cmake`'
FFTW_PATH='`brew --prefix fftw`'
KAHIP_PATH='`brew --prefix kahip`'
METIS_PATH='`brew --prefix metis`'
SCOTCH_PATH='`brew --prefix scotch-no-pthread`'
LIBOMP_PATH='`brew --prefix libomp`'
GMP_PATH='`brew --prefix gmp`'
MPFR_PATH='`brew --prefix mpfr`'
bin/tools/foamConfigurePaths \
-system-compiler "$SYSTEM_COMPILER" \
-adios-path "$ADIOS_PATH" \
-boost-path "$BOOST_PATH" \
-cgal-path "$CGAL_PATH" \
-cmake-path "$CMAKE_PATH" \
-fftw-path "$FFTW_PATH" \
-kahip-path "$KAHIP_PATH" \
-metis-path "$METIS_PATH" \
-scotch-path "$SCOTCH_PATH"
CPATH="$LIBOMP_PATH/include:$GMP_PATH/include:$MPFR_PATH/include"
LIBRARY_PATH="$LIBOMP_PATH/lib:$GMP_PATH/lib:$MPFR_PATH/lib"
echo "export CPATH=\"$CPATH\"" >> etc/prefs.sh
echo "setenv CPATH \"$CPATH\"" >> etc/prefs.csh
echo "export LIBRARY_PATH=\"$LIBRARY_PATH\"" >> etc/prefs.sh
echo "setenv LIBRARY_PATH \"$LIBRARY_PATH\"" >> etc/prefs.csh
echo 'export FOAM_DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH"' >> etc/bashrc
echo 'setenv FOAM_DYLD_LIBRARY_PATH "$DYLD_LIBRARY_PATH"' >> etc/cshrc