diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 7f452954c2ce12749383586c23e009bd6a144542..e1952d1af6c8993a4dcc161acec079f6a3436980 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -26,11 +26,12 @@ dune_add_test(SOURCES harmonicmaptest.cc TIMEOUT 600 CMAKE_GUARD MPI_FOUND) -# Run distributed tests +if (${DUNE_ELASTICITY_VERSION} VERSION_GREATER_EQUAL 2.7) dune_add_test(SOURCES geodesicfeassemblerwrappertest.cc MPI_RANKS 1 4 TIMEOUT 600 CMAKE_GUARD MPI_FOUND) +endif() # Copy the example grid used for testing into the build dir file(COPY grids/irregular-square.msh DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/grids)