meson: better error for freerdp

Helps people to avoid freerdp if they don't want it.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
This commit is contained in:
Pekka Paalanen 2018-12-31 13:02:32 +02:00
parent 9adcf44077
commit c529d0b919
1 changed files with 4 additions and 1 deletions

View File

@ -251,7 +251,10 @@ if get_option('backend-rdp')
dep_frdp = dependency('freerdp2', version: '>= 2.0.0', required: false)
if not dep_frdp.found()
dep_frdp = dependency('freerdp', version: '>= 1.1.0')
dep_frdp = dependency('freerdp', version: '>= 1.1.0', required: false)
endif
if not dep_frdp.found()
error('RDP-backend requires freerdp which was not found. Or, you can use \'-Dbackend-rdp=false\'.')
endif
if cc.has_header('freerdp/version.h', dependencies: dep_frdp)