meson: only require cpp for tests
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
This commit is contained in:
parent
34306efeb2
commit
4c21053123
|
@ -1,5 +1,5 @@
|
|||
project(
|
||||
'wayland', 'c', 'cpp',
|
||||
'wayland', 'c',
|
||||
version: '1.19.90',
|
||||
license: 'MIT',
|
||||
meson_version: '>= 0.52.1',
|
||||
|
|
|
@ -64,15 +64,17 @@ executable(
|
|||
dependencies: test_runner_dep
|
||||
)
|
||||
|
||||
test(
|
||||
'cpp-compile-test',
|
||||
executable(
|
||||
if add_languages('cpp')
|
||||
test(
|
||||
'cpp-compile-test',
|
||||
'cpp-compile-test.cpp',
|
||||
wayland_server_protocol_h,
|
||||
include_directories: src_inc
|
||||
executable(
|
||||
'cpp-compile-test',
|
||||
'cpp-compile-test.cpp',
|
||||
wayland_server_protocol_h,
|
||||
include_directories: src_inc
|
||||
)
|
||||
)
|
||||
)
|
||||
endif
|
||||
|
||||
sed_path = find_program('sed').path()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user