Link with DUNE if available

This commit is contained in:
Roland Kaufmann 2012-11-25 20:38:55 +01:00
parent b057f4ccea
commit 2a653ab51a

View File

@ -36,6 +36,9 @@ find_and_append_package (Boost 1.39.0
COMPONENTS date_time filesystem system unit_test_framework REQUIRED) COMPONENTS date_time filesystem system unit_test_framework REQUIRED)
include (UseDynamicBoost) include (UseDynamicBoost)
# DUNE dependency
find_and_append_package (dune-istl)
# put libraries in lib/ # put libraries in lib/
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/lib") set (CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/lib")
@ -53,7 +56,6 @@ list (REMOVE_ITEM opm-core_SOURCES
# we don't try to find any of these # we don't try to find any of these
set (HAVE_AGMG 0) set (HAVE_AGMG 0)
set (HAVE_DUNE_ISTL 0)
set (HAVE_ERT) set (HAVE_ERT)
# create configuration header which describes available features # create configuration header which describes available features