Commit 4516ba97 authored by Peter Seiderer's avatar Peter Seiderer Committed by Peter Hutterer
Browse files enable CPP include check only in case CPP compiler is available

Drop hard meson C++/CPP dependency, only needed for the build-time
header inclusion test, build the test only in case C++/CPP compiler
is available.
Signed-off-by: Peter Seiderer's avatarPeter Seiderer <>
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <>
parent fc029e3f
Pipeline #14966 passed with stages
in 29 minutes and 3 seconds
project('libinput', 'c', 'cpp',
project('libinput', 'c',
version : '1.12.3',
license : 'MIT/Expat',
default_options : [ 'c_std=gnu99', 'warning_level=2' ],
......@@ -651,12 +651,14 @@ executable('test-build-linker',
include_directories : [includes_src, includes_include],
dependencies : [ dep_libinput, dep_libinput_util ],
install : false)
# test including from C++
# test including from C++ (in case CPP compiler is available)
if add_languages('cpp', required: false)
dependencies : [dep_udev],
include_directories : [includes_src, includes_include],
install : false)
# This is the test suite runner, we allow disabling that one because of
# dependencies
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment