[cmake] do not export dune-istl version but use module local detection.
According to @rolk defines should only be exported in cmake/Modules/<module>-prereqs.cmake if they are used in the headers. This is not the case for the dune-istl version macros and therefore we use opm_need_version_of in the config_hook in the top level CMakefile with this patch.
This commit is contained in:
parent
cf7f07b179
commit
1ad8381b04
@ -46,6 +46,7 @@ include (CMakeLists_files.cmake)
|
|||||||
|
|
||||||
macro (config_hook)
|
macro (config_hook)
|
||||||
# opm_need_version_of ("dune-common")
|
# opm_need_version_of ("dune-common")
|
||||||
|
opm_need_version_of ("dune-istl")
|
||||||
list (APPEND ${project}_CONFIG_IMPL_VARS
|
list (APPEND ${project}_CONFIG_IMPL_VARS
|
||||||
HAVE_DUNE_ISTL
|
HAVE_DUNE_ISTL
|
||||||
)
|
)
|
||||||
|
@ -3,9 +3,6 @@
|
|||||||
|
|
||||||
# defines that must be present in config.h for our headers
|
# defines that must be present in config.h for our headers
|
||||||
set (opm-core_CONFIG_VAR
|
set (opm-core_CONFIG_VAR
|
||||||
DUNE_ISTL_VERSION_MAJOR
|
|
||||||
DUNE_ISTL_VERSION_MINOR
|
|
||||||
DUNE_ISTL_VERSION_REVISION
|
|
||||||
HAVE_ERT
|
HAVE_ERT
|
||||||
HAVE_SUITESPARSE_UMFPACK_H
|
HAVE_SUITESPARSE_UMFPACK_H
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user