Probe for library without using STL
If dune-grid has been compiled with _GLIBCXX_DEBUG, linking the test program will fail since probing doesn't get the flags that are specified for the main project, and thus configuration halts. Instead, we use a smaller test program which doesn't need proper STL linkage to compile and link.
This commit is contained in:
parent
1d5e210822
commit
229cf6d134
@ -34,12 +34,9 @@ find_opm_package (
|
||||
|
||||
# test program
|
||||
"#include <dune/grid/onedgrid.hh>
|
||||
#include <vector>
|
||||
int main (void) {
|
||||
std::vector<Dune::OneDGrid::ctype> coords;
|
||||
Dune::OneDGrid grid(coords);
|
||||
Dune::OneDGrid grid(1, 0., 1.);
|
||||
return grid.lbegin<0>(0) == grid.lend<0>(0);
|
||||
return 0;
|
||||
}
|
||||
"
|
||||
# config variables
|
||||
|
Loading…
Reference in New Issue
Block a user