--- CMakeLists.txt.orig	2023-08-02 16:06:12 UTC
+++ CMakeLists.txt
@@ -62,7 +62,9 @@ include(CTest)
 ## Tests.
 
 include(CTest)
+if (BUILD_TESTING)
 add_subdirectory(test)
+endif()
 
 ## CPack settings.
 
