$OpenBSD: patch-ConfigureChecks_cmake,v 1.1 2019/06/23 09:00:21 rapha Exp $

Index: ConfigureChecks.cmake
--- ConfigureChecks.cmake.orig
+++ ConfigureChecks.cmake
@@ -238,7 +238,7 @@ endif()
 
 # Determine whether CppUnit is installed.
 
-if(BUILD_TESTS AND NOT BUILD_SHARED_LIBS)
+if(BUILD_TESTS)
   find_package(CppUnit)
   if(NOT CppUnit_FOUND)
     message(STATUS "CppUnit not found, disabling tests.")
