Merge pull request #259 from blattms/fix-check-for-opm-grid-with-dune-2.5
Fix check for opm grid with dune 2.5
This commit is contained in:
@@ -20,7 +20,7 @@ find_opm_package (
|
||||
"${opm-grid_DEPS}"
|
||||
|
||||
# header to search for
|
||||
"dune/grid/CpGrid.hpp"
|
||||
"dune/grid/cpgrid/GlobalIdMapping.hpp"
|
||||
|
||||
# library to search for
|
||||
"opmgrid"
|
||||
@@ -29,9 +29,9 @@ find_opm_package (
|
||||
"HAVE_OPM_GRID"
|
||||
|
||||
# test program
|
||||
"#include <dune/grid/CpGrid.hpp>
|
||||
"#include <dune/grid/cpgrid/GlobalIdMapping.hpp>
|
||||
int main (void) {
|
||||
Dune::CpGrid g;
|
||||
Dune::cpgrid::GlobalIdMapping g;
|
||||
return 0;
|
||||
}
|
||||
"
|
||||
|
||||
@@ -6,6 +6,9 @@ set (opm-grid_CONFIG_VAR
|
||||
DUNE_GRID_VERSION_MAJOR
|
||||
DUNE_GRID_VERSION_MINOR
|
||||
DUNE_GRID_VERSION_REVISION
|
||||
DUNE_GEOMETRY_VERSION_MAJOR
|
||||
DUNE_GEOMETRY_VERSION_MINOR
|
||||
DUNE_GEOMETRY_VERSION_REVISION
|
||||
DUNE_COMMON_VERSION_MAJOR
|
||||
DUNE_COMMON_VERSION_MINOR
|
||||
DUNE_COMMON_VERSION_REVISION
|
||||
|
||||
Reference in New Issue
Block a user