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 committed by Atgeirr Flø Rasmussen
parent 9c4161bbdb
commit 2bb5159a97

View File

@ -35,10 +35,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;
}
"