From 514eaa731077b53b470d79dc9025ad3d60a9f4cf Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Thu, 2 Apr 2015 16:39:39 +0200 Subject: [PATCH] Testsuite: Bugfix: Guard mesh_converter tests Only run mesh_converter tests if the testsuite is set up as a dependent project of the deal.II. In case of an already installed deal.II library, not all necessary files and configuration for the mesh_converter tests are available. --- tests/CMakeLists.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 13c452de4b..a28d2f449d 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -87,9 +87,14 @@ ENDFOREACH() SET(_categories a-framework algorithms all-headers aniso arpack base bits build_tests codim_one deal.II distributed_grids fe gla grid hp integrators lac lapack - manifold matrix_free mesh_converter metis mpi multigrid opencascade petsc - serialization slepc trilinos umfpack + manifold matrix_free metis mpi multigrid opencascade petsc serialization + slepc trilinos umfpack ) +IF(DEFINED DEAL_II_HAVE_TESTS_DIRECTORY) + # Only set up mesh_converter tests if the testsuite is set up as a + # dependent project: + LIST(APPEND _categories mesh_converter) +ENDIF() # # Custom targets for the testsuite: -- 2.39.5