File linphone-04-build-jsoncpp.patch of Package linphone

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -244,7 +244,8 @@
 endif()
 
 if (ENABLE_FLEXIAPI)
-	find_package(jsoncpp REQUIRED)
+	find_package(PkgConfig REQUIRED)
+	pkg_check_modules(JSONCPP REQUIRED jsoncpp)
 	set(HAVE_FLEXIAPI TRUE)
 endif()
 
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -640,7 +640,7 @@
 		if (XCODE)
 			target_link_libraries(linphone PRIVATE jsoncpp_static)
 		else()
-			target_link_libraries(linphone PRIVATE jsoncpp_object)
+			target_link_libraries(linphone PRIVATE jsoncpp)
 		endif()
 	endif()
 
@@ -689,7 +689,7 @@
 		if (XCODE)
 			target_link_libraries(linphone PRIVATE jsoncpp_static)
 		else()
-			target_link_libraries(linphone PRIVATE jsoncpp_object)
+			target_link_libraries(linphone PRIVATE jsoncpp)
 		endif()
 	endif()
 
openSUSE Build Service is sponsored by