FindALUGrid.cmake: incorperate Roland's comments to PR 317

This commit is contained in:
Andreas Lauser 2013-08-14 23:16:25 +02:00 committed by Roland Kaufmann
parent eed47decf2
commit 15631d2ab1
2 changed files with 4 additions and 5 deletions

View File

@ -79,16 +79,17 @@ if (NOT ALUGRID_INCLUDE_DIR)
endif()
mark_as_advanced(ALUGRID_INCLUDE_DIR)
find_library(ALUGRID_LIBRARIES alugrid
find_library(ALUGRID_LIBRARY alugrid
PATHS "${ALUGRID_ROOT}"
PATH_SUFFIXES lib lib32 lib64
DOC "ALUGrid library"
NO_DEFAULT_PATH)
if (NOT ALUGRID_LIBRARIES)
if (NOT ALUGRID_LIBRARY)
message(STATUS "Could not find ALUGrid usable library")
_opm_set_alugrid(0)
return()
endif()
set(ALUGRID_LIBRARIES ${ALUGRID_LIBRARY} ${METIS_LIBRARIES})
mark_as_advanced(ALUGRID_LIBRARIES)

View File

@ -23,8 +23,7 @@ find_opm_package (
dune-common REQUIRED;
dune-geometry REQUIRED;
MPI;
ALUGrid;
METIS
ALUGrid
"
# header to search for
"dune/grid/onedgrid.hh"
@ -47,7 +46,6 @@ int main (void) {
HAVE_UG;
HAVE_DUNE_FEM;
HAVE_ALUGRID;
HAVE_METIS;
HAVE_GRIDTYPE;
HAVE_GRAPE;
HAVE_PSURFACE;