meson: better error for freerdp

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

Signed-off-by: Pekka Paalanen <pq@iki.fi>
dev
Pekka Paalanen 6 years ago
parent 9adcf44077
commit c529d0b919
  1. 5
      libweston/meson.build

@ -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)

Loading…
Cancel
Save