CMake: Fix version checks

This commit is contained in:
Marvin W 2022-08-20 22:16:28 +02:00
parent 5103a7fb7b
commit 7b252d040a
No known key found for this signature in database
GPG key ID: 072E9235DB996F2A

View file

@ -16,19 +16,19 @@ 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(GstRtp_VERSION VERSION_GREATER "1.20") if(GstRtp_VERSION VERSION_GREATER_EQUAL "1.20")
set(RTP_DEFINITIONS ${RTP_DEFINITIONS} GST_1_20) set(RTP_DEFINITIONS ${RTP_DEFINITIONS} GST_1_20)
endif() endif()
if(VALA_VERSION VERSION_GREATER "0.56.1") if(VALA_VERSION VERSION_GREATER_EQUAL "0.56.1")
set(RTP_DEFINITIONS ${RTP_DEFINITIONS} VALA_0_56_1) set(RTP_DEFINITIONS ${RTP_DEFINITIONS} VALA_0_56_1)
endif() endif()