OverloadCompilerFlags

Legacy compatibility support for overriding compiler flags from the build command line.

ALLOW_CXXFLAGS_OVERWRITE

Allow overriding preprocessor definitions from the command line, similar to the historical autotools workflow.

Deprecated since version 2.11: This option is no longer part of the normal CMake build process. Use dune-common/bin/compiler_launcher.sh instead.

This feature only worked with Unix Makefiles based generators. Typical usage was:

make CXXFLAGS="your flags" GRIDTYPE="grid type"

GRIDTYPE may be any symbol defined in config.h via dune_define_gridtype() from dune-grid. Preprocessor definitions of the form -DVAR=VALUE could also be overridden from the command line.

ALLOW_CFLAGS_OVERWRITE

C-language analogue of ALLOW_CXXFLAGS_OVERWRITE.

Deprecated since version 2.11: This option is no longer part of the normal CMake build process. Use dune-common/bin/compiler_launcher.sh instead.

initialize_compiler_script

Legacy initialization hook for compiler-flag overriding. The command now only emits a warning when the deprecated overwrite options are enabled.