CMake: Fix version checks

This commit is contained in:
Marvin W 2022-08-20 22:16:28 +02:00 committed by fiaxh
parent aa90175852
commit 6c258c2f28

View file

@ -15,15 +15,15 @@ find_packages(RTP_PACKAGES REQUIRED
set(RTP_DEFINITIONS) set(RTP_DEFINITIONS)
if(GstRtp_VERSION VERSION_GREATER "1.16") if(GstRtp_VERSION VERSION_GREATER_EQUAL "1.16")
set(RTP_DEFINITIONS ${RTP_DEFINITIONS} GST_1_16) set(RTP_DEFINITIONS ${RTP_DEFINITIONS} GST_1_16)
endif() endif()
if(GstRtp_VERSION VERSION_GREATER "1.18") if(GstRtp_VERSION VERSION_GREATER_EQUAL "1.18")
set(RTP_DEFINITIONS ${RTP_DEFINITIONS} GST_1_18) set(RTP_DEFINITIONS ${RTP_DEFINITIONS} GST_1_18)
endif() endif()
if(GLib_VERSION VERSION_GREATER "2.64") if(GLib_VERSION VERSION_GREATER_EQUAL "2.64")
set(RTP_DEFINITIONS ${RTP_DEFINITIONS} GLIB_2_64) set(RTP_DEFINITIONS ${RTP_DEFINITIONS} GLIB_2_64)
endif() endif()