cumulative modification to CMake build system
This commit is contained in:
parent
409f98514b
commit
400076b742
|
@ -2,16 +2,31 @@
|
||||||
|
|
||||||
cat README
|
cat README
|
||||||
echo "Building spectral solver with ${FC}"
|
echo "Building spectral solver with ${FC}"
|
||||||
|
DAMASKVERSION :=$(shell cat ../VERSION)
|
||||||
|
|
||||||
# prepare building directory
|
# prepare building directory
|
||||||
if [ ! -d build_spectral ] ; then
|
if [ -d build_spectral ] ; then
|
||||||
mkdir build_spectral
|
rm -rf build_spectral
|
||||||
fi
|
fi
|
||||||
|
mkdir build_spectral
|
||||||
cd build_spectral
|
cd build_spectral
|
||||||
|
|
||||||
# start building
|
##
|
||||||
cmake -D PETSC_DIR=${PETSC_DIR} \
|
# CMake call
|
||||||
-D HDF5=${HDF5} \
|
# PETSC_DIR | PETSC directory
|
||||||
|
# HDF5_DIR | HDF5 library (same compiler for DAMASK)
|
||||||
|
# DAMASK_ROOT | DAMASK source location
|
||||||
|
# DAMASK_V | DAMASK current revision
|
||||||
|
# CMAKE_BUILD_TYPE | Default set to release (no debugging output)
|
||||||
|
# OPENMP | "ON" will turn on OPENMP support
|
||||||
|
# OPTIMIZATION | [OFF,DEFENSIVE,AGGRESSIVE,ULTRA]
|
||||||
|
cmake -D PETSC_DIR=${PETSC_DIR} \
|
||||||
|
-D HDF5_DIR=${HDF5_DIR} \
|
||||||
|
-D DAMASK_ROOT=.. \
|
||||||
|
-D DAMASK_V=${DAMASKVERSION} \
|
||||||
|
-D CMAKE_BUILD_TYPE=RELEASE \
|
||||||
|
-D OPENMP=ON \
|
||||||
|
-D OPTIMIZATION=DEFENSIVE \
|
||||||
..
|
..
|
||||||
|
|
||||||
# instruction for compiling
|
# instruction for compiling
|
||||||
|
|
Loading…
Reference in New Issue