From bec73ed3714fc89627392b1dfc74d1b919dbe355 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Fri, 14 May 2021 10:17:51 +0200 Subject: RTP: Fix GStreamer version check --- cmake/FindGstRtp.cmake | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cmake/FindGstRtp.cmake') diff --git a/cmake/FindGstRtp.cmake b/cmake/FindGstRtp.cmake index 0756a985..e13a1be7 100644 --- a/cmake/FindGstRtp.cmake +++ b/cmake/FindGstRtp.cmake @@ -8,6 +8,11 @@ find_pkg_config_with_fallback(GstRtp DEPENDS Gst ) +if(GstRtp_FOUND AND NOT GstRtp_VERSION) + find_package(Gst) + set(GstRtp_VERSION ${Gst_VERSION}) +endif() + include(FindPackageHandleStandardArgs) find_package_handle_standard_args(GstRtp REQUIRED_VARS GstRtp_LIBRARY -- cgit v1.2.3-54-g00ecf