File cmake-enable-testing-builddir.patch of Package olm

Index: olm-3.2.10/CMakeLists.txt
===================================================================
--- olm-3.2.10.orig/CMakeLists.txt
+++ olm-3.2.10/CMakeLists.txt
@@ -138,5 +138,6 @@ export(EXPORT olm-targets
 export(PACKAGE Olm)
 
 if (OLM_TESTS)
-   add_subdirectory(tests)
+    enable_testing()
+    add_subdirectory(tests)
 endif()
Index: olm-3.2.10/tests/CMakeLists.txt
===================================================================
--- olm-3.2.10.orig/tests/CMakeLists.txt
+++ olm-3.2.10/tests/CMakeLists.txt
@@ -1,5 +1,3 @@
-enable_testing()
-
 set(TEST_LIST
     base64
     crypto
openSUSE Build Service is sponsored by