Commit 879d0c69 authored by Martin Schneider's avatar Martin Schneider

[cmake] Delete find package opm-common

Opm-common changes some of the cmake variables
that are set by dune, e.g. HAVE_UMFPACK.
This should be fixed by these changes.
parent 72589d16
......@@ -12,18 +12,8 @@ if(NOT (dune-common_DIR
${PROJECT_BINARY_DIR})
endif()
if(NOT (opm-common_DIR
OR opm-common_ROOT
OR "${CMAKE_PREFIX_PATH}" MATCHES ".*opm-common.*"))
string(REPLACE ${CMAKE_PROJECT_NAME}
opm-common opm-common_DIR
${PROJECT_BINARY_DIR})
endif()
#find dune-common and set the module path
find_package(dune-common)
#find opm-common to support OPM
find_package(opm-common)
list(APPEND CMAKE_MODULE_PATH ${dune-common_MODULE_PATH}
"${PROJECT_SOURCE_DIR}/cmake/modules")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment