File linphone-build-jsoncpp.patch of Package linphone

Index: liblinphone-5.3.4/CMakeLists.txt
===================================================================
--- liblinphone-5.3.4.orig/CMakeLists.txt
+++ liblinphone-5.3.4/CMakeLists.txt
@@ -194,7 +194,8 @@ if(ENABLE_LDAP)
 endif()
 
 if(ENABLE_FLEXIAPI)
-	find_package(JsonCPP REQUIRED)
+  find_package(PkgConfig REQUIRED)
+  pkg_check_modules(JSONCPP REQUIRED jsoncpp)
 	set(HAVE_FLEXIAPI TRUE)
 endif()
openSUSE Build Service is sponsored by