FindAlugrid.cmake: do not try to include the whole grid

first this makes the test very slow, second (and more importantly) it
makes the test fail on dune master as the header relies on the
presence of the DUNE_GRID_VERSION* macros which are not present at the
configure stage of the build...
This commit is contained in:
Andreas Lauser 2014-12-12 14:29:04 +01:00
parent e9eb1b8b61
commit 94d22d3c03

View File

@ -34,10 +34,8 @@ find_opm_package (
""
# test program
"#include <dune/alugrid/grid.hh>
"#include <dune/alugrid/2d/indexsets.hh>
int main (void) {
Dune::ALUGrid</*dim=*/2, /*dimWorld=*/2, Dune::simplex, Dune::nonconforming> grid;
grid.leafGridView().size(/*codim=*/0);
return 0;
}
"