Index: ConfigureChecks.cmake
--- ConfigureChecks.cmake.orig
+++ ConfigureChecks.cmake
@@ -189,7 +189,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.")
