Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save masoudbehzadinasab/342709876b84c4e069b2bcc8c25ee0c0 to your computer and use it in GitHub Desktop.
Save masoudbehzadinasab/342709876b84c4e069b2bcc8c25ee0c0 to your computer and use it in GitHub Desktop.
CMake build file for Peridigm on Mac OS X with Clang compiler
#!/usr/bin/env bash
PERIDIGM_ROOT=/usr/local/Peridigm
MPI_HOME=/usr/local/
rm -f CMakeCache.txt
# invoke cmake
cmake \
-D CMAKE_BUILD_TYPE:STRING=Debug \
-D CMAKE_INSTALL_PREFIX:PATH=$PERIDIGM_ROOT \
-D TRILINOS_DIR:PATH=/usr/local/trilinos/include \
-D CMAKE_CXX_COMPILER:STRING=$MPI_HOME/bin/mpicxx \
-D CMAKE_CXX_FLAGS:STRING="-g -O0 -std=c++11" \
-D Blas_LIBRARY:FILE=/usr/lib/libblas.dylib \
-D Lapack_LIBRARY:FILE=/usr/lib/liblapack.dylib \
..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment