mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Trim unnecessarily required config vars
The modules declare which configuration variables they need to have present in config.h, not only their own but also defined in projects using them. However, a lot of these variables are not actually used in the headers! This changeset removes all HAVE_XXX variables which is not present in any opm/*.h* file in these projects, and thus there is no need for the client to specify. Note that only the variables used by the module *itself* should be listed; the build system will setup the complete list from the prerequisites.
This commit is contained in:
parent
fa32d2a03e
commit
1b953dce5f
@ -3,11 +3,8 @@
|
||||
|
||||
# defines that must be present in config.h for our headers
|
||||
set (opm-core_CONFIG_VAR
|
||||
HAVE_DUNE_ISTL
|
||||
HAVE_ERT
|
||||
HAVE_SUITESPARSE_UMFPACK_H
|
||||
HAVE_NULLPTR
|
||||
HAVE_STATIC_ASSERT
|
||||
)
|
||||
|
||||
# dependencies
|
||||
|
@ -3,20 +3,8 @@
|
||||
|
||||
# defines that must be present in config.h for our headers
|
||||
set (opm-material_CONFIG_VAR
|
||||
HAVE_NULLPTR
|
||||
HAVE_ARRAY
|
||||
HAVE_ATTRIBUTE_ALWAYS_INLINE
|
||||
HAS_ATTRIBUTE_UNUSED
|
||||
HAS_ATTRIBUTE_DEPRECATED
|
||||
HAS_ATTRIBUTE_DEPRECATED_MSG
|
||||
HAVE_CONSTEXPR
|
||||
HAVE_INTEGRAL_CONSTANT
|
||||
HAVE_STATIC_ASSERT
|
||||
HAVE_VARIADIC_TEMPLATES
|
||||
HAVE_VARIADIC_CONSTRUCTOR_SFINAE
|
||||
HAVE_RVALUE_REFERENCES
|
||||
HAVE_TUPLE
|
||||
HAVE_TR1_TUPLE
|
||||
HAVE_MPI
|
||||
HAVE_VALGRIND
|
||||
)
|
||||
|
||||
# dependencies
|
||||
|
@ -3,7 +3,6 @@
|
||||
|
||||
# defines that must be present in config.h for our headers
|
||||
set (opm-polymer_CONFIG_VAR
|
||||
HAVE_ERT
|
||||
)
|
||||
|
||||
# dependencies
|
||||
|
@ -3,7 +3,6 @@
|
||||
|
||||
# defines that must be present in config.h for our headers
|
||||
set (opm-porsol_CONFIG_VAR
|
||||
HAVE_VALGRIND
|
||||
)
|
||||
|
||||
# dependencies
|
||||
|
@ -3,7 +3,6 @@
|
||||
|
||||
# defines that must be present in config.h for our headers
|
||||
set (opm-upscaling_CONFIG_VAR
|
||||
HAVE_LAPACK
|
||||
HAVE_SUPERLU
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user