--- CMakeLists.txt.orig	2022-07-11 07:32:00 UTC
+++ CMakeLists.txt
@@ -225,4 +225,7 @@ install(
   DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}"
 )
 
+if (BUILD_TESTING)
 add_subdirectory("test")
+endif()
+
