optim.opts 736 Bytes
Newer Older
1 2
GXX_WARNING_OPTS=" \
    -Wall \
3
    -Wunused \
4 5 6 7
    -Wmissing-include-dirs \
    -Wcast-align \
    -Wno-sign-compare \
    -Wno-unused-parameter"
8

9
# additional -W flags for g++ which will lead to many warnings
10 11 12 13 14 15 16
#    -Wextra \
#    -Wfloat-equal \
#    -Wstrict-overflow \

GXX_OPTS=" \
    -fno-strict-aliasing \
    -fstrict-overflow \
17
    -fno-finite-math-only \
18 19 20
    -O3 \
    -march=native \
    -DNDEBUG=1"
21

22
# configure flags
23 24
CMAKE_FLAGS=" \
  -DCMAKE_CXX_FLAGS=\"$GXX_WARNING_OPTS $GXX_OPTS\" \
25
  -DUG_DIR=ug_installation_path \
26
  "
27

28 29 30
# optional configure flags
# for the CO2 and CO2ni tests enable the experimental grid extension
# and make sure the module dune-alugrid is present
31
# -DDUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS=TRUE \