meson.build: define cpp dependency as non-native

meson.build:93: WARNING: add_languages is missing native:,
  assuming languages are wanted for both host and build.

Doesn't matter for our use-case (compilation check only), so let's define it
as non-native.
This commit is contained in:
Peter Hutterer 2021-06-24 11:26:48 +10:00 committed by Wim Taymans
parent 5e76f39e9d
commit c69ebf6361

View file

@ -90,7 +90,7 @@ cc_flags = common_flags + [
]
add_project_arguments(cc.get_supported_arguments(cc_flags), language: 'c')
have_cpp = add_languages('cpp', required : false)
have_cpp = add_languages('cpp', native: false, required : false)
if have_cpp
cxx = meson.get_compiler('cpp')