CMake: Fix version checks
This commit is contained in:
parent
aa90175852
commit
6c258c2f28
|
@ -15,15 +15,15 @@ find_packages(RTP_PACKAGES REQUIRED
|
|||
|
||||
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)
|
||||
endif()
|
||||
|
||||
if(GstRtp_VERSION VERSION_GREATER "1.18")
|
||||
if(GstRtp_VERSION VERSION_GREATER_EQUAL "1.18")
|
||||
set(RTP_DEFINITIONS ${RTP_DEFINITIONS} GST_1_18)
|
||||
endif()
|
||||
|
||||
if(GLib_VERSION VERSION_GREATER "2.64")
|
||||
if(GLib_VERSION VERSION_GREATER_EQUAL "2.64")
|
||||
set(RTP_DEFINITIONS ${RTP_DEFINITIONS} GLIB_2_64)
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in a new issue