mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
The interface of the class PersistentContainer changed between DUNE 2.2 and DUNE 2.3 in an incompatible way, so we need to present different versions of the class depending on the version of DUNE linked with. This changeset adds the version variables for dune-grid to the list of publicly necessary #defines that must go into using dune-cornerpoint. Notice that this will cause the definition of DUNE_GRID_VERSION_XXX to be added to the flags list of dune-cornerpoint. This can be seen as either a bug or a feature. If you try to link first dune-cornerpoint to one version and then to another version of DUNE later, there is a very good chance that you'll end up with problems anyway.
28 lines
812 B
CMake
28 lines
812 B
CMake
# -*- mode: cmake; tab-width: 2; indent-tabs-mode: t; truncate-lines: t; compile-command: "cmake -Wdev" -*-
|
|
# vim: set filetype=cmake autoindent tabstop=2 shiftwidth=2 noexpandtab softtabstop=2 nowrap:
|
|
|
|
# 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
|
|
)
|
|
|
|
# dependencies
|
|
set (dune-cornerpoint_DEPS
|
|
# compile with C99 support if available
|
|
"C99"
|
|
# compile with C++0x/11 support if available
|
|
"CXX11Features"
|
|
# various runtime library enhancements
|
|
"Boost 1.39.0
|
|
COMPONENTS date_time filesystem system unit_test_framework REQUIRED"
|
|
# DUNE dependency
|
|
"dune-common REQUIRED;
|
|
dune-grid REQUIRED;
|
|
dune-geometry REQUIRED"
|
|
# OPM dependency
|
|
"opm-core REQUIRED"
|
|
)
|