Skip to content

Instantly share code, notes, and snippets.

@gchavez2
Created February 6, 2019 18:52
Show Gist options
  • Select an option

  • Save gchavez2/b6c582949f90748a452e0e35e66c0a8a to your computer and use it in GitHub Desktop.

Select an option

Save gchavez2/b6c582949f90748a452e0e35e66c0a8a to your computer and use it in GitHub Desktop.
if [[ $1 == "r" ]];
then
rm -rf build
mkdir build
fi
cd build
# -DCMAKE_BUILD_TYPE=Release \
cmake .. \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX=. \
-DCMAKE_C_COMPILER=gcc \
-DCMAKE_CXX_COMPILER=g++ \
-DCMAKE_Fortran_COMPILER=gfortran \
-DBUILD_SHARED_LIBS=ON \
-DSTRUMPACK_USE_MPI=OFF \
-DTPL_BLAS_LIBRARIES="/usr/local/Cellar/openblas/0.2.20_1/lib/libblas.dylib" \
-DTPL_LAPACK_LIBRARIES="/usr/local/Cellar/openblas/0.2.20_1/lib/liblapack.dylib" \
-DTPL_METIS_INCLUDE_DIRS="/usr/local/Cellar/metis/5.1.0/include" \
-DTPL_METIS_LIBRARIES="/usr/local/Cellar/metis/5.1.0/lib/libmetis.dylib"
make install VERBOSE=1
cd examples
make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment