The check for meson version 0.44 is redundant since the minimum
supported version for the project as a whole is 0.47.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
Acked-by: Luca Boccassi <bluca@debian.org>
WARN_NO_HEADERS='Cannot compile kernel modules as requested - are kernel headers installed?'
# if we are cross-compiling we need kernel_dir specified
-# NOTE: warning() function only available from version 0.44 onwards
if get_option('kernel_dir') == '' and meson.is_cross_build()
- if meson.version().version_compare('>=0.44')
- warning(WARN_CROSS_COMPILE)
- else
- message('WARNING: ' + WARN_CROSS_COMPILE)
- endif
+ warning(WARN_CROSS_COMPILE)
else
kernel_dir = get_option('kernel_dir')