From 7dc3a9e5ee99e545f1177cdfbb130f5bd079fc3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carsten=20Gr=C3=A4ser?= <graeser@dune-project.org> Date: Thu, 17 Mar 2016 02:02:27 +0100 Subject: [PATCH] Create and register library before add_subdirectory() Otherwise the tests in the subdirectories will not link to the lib although tests in other modules do. --- dune/solvers/CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dune/solvers/CMakeLists.txt b/dune/solvers/CMakeLists.txt index ea0ac135..ce9d0fe3 100644 --- a/dune/solvers/CMakeLists.txt +++ b/dune/solvers/CMakeLists.txt @@ -1,3 +1,8 @@ +dune_add_library("dunesolvers" + solvers/criterion.cc) + +dune_register_package_flags(LIBRARIES dunesolvers) + add_subdirectory("common") add_subdirectory("iterationsteps") add_subdirectory("norms") @@ -6,11 +11,6 @@ add_subdirectory("solvers") add_subdirectory("test") add_subdirectory("transferoperators") -dune_add_library("dunesolvers" - solvers/criterion.cc) - -dune_register_package_flags(LIBRARIES) - install(FILES computeenergy.hh DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dune/solvers) -- GitLab