mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-30 21:13:49 -06:00
Put HAVE_DYNAMIC_BOOST_TEST in config.h for tests only
This define is used by the unit tests; there is no reason why it should be on the list that must be provided by other projects that use our headers (the other projects don't use our tests).
This commit is contained in:
parent
6537f63307
commit
fa32d2a03e
@ -145,11 +145,16 @@ list (APPEND ${project}_CONFIG_VARS ${${project}_CONFIG_VAR})
|
||||
# write configuration variables to this file. note that it is a temporary.
|
||||
# _CONFIG_IMPL_VARS are defines that are only written to config.h internal
|
||||
# to this project; they are not exported to any installed files.
|
||||
# TESTING_CONFIG_VARS is what's required by the unit tests, and is therefore
|
||||
# added in an ad-hoc manner to avoid putting dependencies to it in the module
|
||||
# requirement file. (it should be added if there is .h code that needs it)
|
||||
message (STATUS "Writing config file \"${PROJECT_BINARY_DIR}/config.h\"...")
|
||||
set (CONFIG_H "${PROJECT_BINARY_DIR}/config.h.tmp")
|
||||
configure_vars (
|
||||
FILE CXX ${CONFIG_H}
|
||||
WRITE ${${project}_CONFIG_VARS} ${${project}_CONFIG_IMPL_VARS}
|
||||
WRITE ${${project}_CONFIG_VARS}
|
||||
${${project}_CONFIG_IMPL_VARS}
|
||||
${TESTING_CONFIG_VARS}
|
||||
)
|
||||
|
||||
# call this hook to let it setup necessary conditions for Fortran support
|
||||
|
@ -31,3 +31,6 @@ endif (${Boost_UNIT_TEST_FRAMEWORK_FOUND})
|
||||
set (HAVE_DYNAMIC_BOOST_TEST "${HAVE_DYNAMIC_BOOST_TEST}"
|
||||
CACHE BOOL "Whether Boost::Test is dynamically linked or not"
|
||||
)
|
||||
|
||||
# include in config.h
|
||||
list (APPEND TESTING_CONFIG_VARS "HAVE_DYNAMIC_BOOST_TEST")
|
||||
|
@ -3,7 +3,6 @@
|
||||
|
||||
# defines that must be present in config.h for our headers
|
||||
set (dune-cornerpoint_CONFIG_VAR
|
||||
HAVE_DYNAMIC_BOOST_TEST
|
||||
DUNE_GRID_VERSION_MAJOR
|
||||
DUNE_GRID_VERSION_MINOR
|
||||
DUNE_GRID_VERSION_REVISION
|
||||
|
@ -3,7 +3,6 @@
|
||||
|
||||
# defines that must be present in config.h for our headers
|
||||
set (opm-autodiff_CONFIG_VAR
|
||||
HAVE_DYNAMIC_BOOST_TEST
|
||||
)
|
||||
|
||||
# dependencies
|
||||
|
@ -4,7 +4,6 @@
|
||||
# defines that must be present in config.h for our headers
|
||||
set (opm-core_CONFIG_VAR
|
||||
HAVE_DUNE_ISTL
|
||||
HAVE_DYNAMIC_BOOST_TEST
|
||||
HAVE_ERT
|
||||
HAVE_SUITESPARSE_UMFPACK_H
|
||||
HAVE_NULLPTR
|
||||
|
@ -3,7 +3,6 @@
|
||||
|
||||
# defines that must be present in config.h for our headers
|
||||
set (opm-polymer_CONFIG_VAR
|
||||
HAVE_DYNAMIC_BOOST_TEST
|
||||
HAVE_ERT
|
||||
)
|
||||
|
||||
|
@ -3,7 +3,6 @@
|
||||
|
||||
# defines that must be present in config.h for our headers
|
||||
set (opm-porsol_CONFIG_VAR
|
||||
HAVE_DYNAMIC_BOOST_TEST
|
||||
HAVE_VALGRIND
|
||||
)
|
||||
|
||||
|
@ -3,7 +3,6 @@
|
||||
|
||||
# defines that must be present in config.h for our headers
|
||||
set (opm-upscaling_CONFIG_VAR
|
||||
HAVE_DYNAMIC_BOOST_TEST
|
||||
HAVE_LAPACK
|
||||
HAVE_SUPERLU
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user