Skip to content

Instantly share code, notes, and snippets.

@johntfoster
Last active December 31, 2015 17:38
Show Gist options
  • Select an option

  • Save johntfoster/c79a5cefb3d9aefa34e8 to your computer and use it in GitHub Desktop.

Select an option

Save johntfoster/c79a5cefb3d9aefa34e8 to your computer and use it in GitHub Desktop.
Cmake build script for Stampede
#!/usr/bin/env bash
export JOHN="/home1/01809/jtfoster"
rm -f CMakeCache.txt
cmake \
-D CMAKE_INSTALL_PREFIX:PATH=$HOME/projects/Peridigm \
-D CMAKE_BUILD_TYPE:STRING=Release \
-D CMAKE_CXX_COMPILER:STRING="mpicxx" \
-D CMAKE_C_COMPILER:STRING="mpicc" \
-D CMAKE_CXX_FLAGS:STRING="-std=c++11 -O2 -Wall -ansi -Wno-long-long -fp-model precise -fp-model source -ip -xHost -I$JOHN/projects/netcdf/include" \
-D CMAKE_C_FLAGS:STRING="-O2 -Wall -ansi -Wno-long-long -fp-model precise -fp-model source -ip -xHost -I$JOHN/projects/netcdf/include" \
-D TRILINOS_DIR:PATH=$JOHN/projects/trilinos \
-D BOOST_ROOT:STRING=$JOHN/projects/boost \
..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment