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.shinstead.This feature only worked with
Unix Makefilesbased generators. Typical usage was:make CXXFLAGS="your flags" GRIDTYPE="grid type"GRIDTYPEmay be any symbol defined inconfig.hviadune_define_gridtype()from dune-grid. Preprocessor definitions of the form-DVAR=VALUEcould 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.shinstead.
- initialize_compiler_script¶
Legacy initialization hook for compiler-flag overriding. The command now only emits a warning when the deprecated overwrite options are enabled.