Merge pull request #3436 from hnil/fem-withpolygrid

fixed error if dune-fem is buildt with polygongrid
This commit is contained in:
Bård Skaflestad 2023-03-17 13:46:26 +01:00 committed by GitHub
commit c5d25fa663
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 48 additions and 0 deletions

View File

@ -22,6 +22,7 @@ find_opm_package (
"dune-common REQUIRED;
dune-grid REQUIRED;
dune-alugrid;
dune-polygongrid;
ZLIB;
ZOLTAN;
METIS;

View File

@ -0,0 +1,47 @@
# - Find DUNE Fem library
#
# Defines the following variables:
# dune-polygongrid_INCLUDE_DIRS Directory of header files
# dune-polygongrid_LIBRARIES Directory of shared object files
# dune-polygongrid_DEFINITIONS Defines that must be set to compile
# dune-alugrid_CONFIG_VARS List of defines that should be in config.h
# HAVE_DUNE_POLYGONGRID Binary value to use in config.h
# Copyright (C) 2015 IRIS AS
# This code is licensed under The GNU General Public License v3.0
include (OpmPackage)
find_opm_package (
# module name
"dune-polygongrid"
# dependencies
# TODO: we should probe for all the HAVE_* values listed below;
# however, we don't actually use them in our implementation, so
# we just include them to forward here in case anyone else does
"dune-common REQUIRED;
"
# header to search for
"dune/polygongrid/mesh.hh"
# library to search for
"dunepolygongrid"
# defines to be added to compilations
""
# test program
"#include <dune/polygongrid/mesh.hh>
int main (void) {
return 0;
}
"
# config variables
"HAVE_DUNE_POLYGONGRID
")
#debug_find_vars ("dune-polygongrid")
# make version number available in config.h
include (UseDuneVer)
find_dune_version ("dune" "polygongrid")