aboutsummaryrefslogtreecommitdiff
path: root/cmake/FindGstRtp.cmake
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2021-05-14 10:17:51 +0200
committerMarvin W <git@larma.de>2021-05-14 10:17:51 +0200
commitbec73ed3714fc89627392b1dfc74d1b919dbe355 (patch)
tree9c8c979053e97f9a722fc23ea6fa6aec5d9fb4a1 /cmake/FindGstRtp.cmake
parent3bfd407843fc414bde78831c714579a2c6844ef1 (diff)
downloaddino-bec73ed3714fc89627392b1dfc74d1b919dbe355.tar.gz
dino-bec73ed3714fc89627392b1dfc74d1b919dbe355.zip
RTP: Fix GStreamer version check
Diffstat (limited to 'cmake/FindGstRtp.cmake')
-rw-r--r--cmake/FindGstRtp.cmake5
1 files changed, 5 insertions, 0 deletions
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