From 2c52c6ec921130bed612b96c2939207391d5237c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 6 Feb 2025 20:50:15 -0500 Subject: Add option to disable C++ bindings --- test/headers/meson.build | 2 +- test/meson.build | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/headers/meson.build b/test/headers/meson.build index c0adabd..a6c279e 100644 --- a/test/headers/meson.build +++ b/test/headers/meson.build @@ -11,7 +11,7 @@ if get_option('warning_level') == 'everything' endif endif -header_c_suppressions = cpp.get_supported_arguments(header_c_suppressions) +header_c_suppressions = cc.get_supported_arguments(header_c_suppressions) test_headers_c_args = header_c_suppressions test_headers_c_args += [ diff --git a/test/meson.build b/test/meson.build index f015596..6bd0aa3 100644 --- a/test/meson.build +++ b/test/meson.build @@ -1,4 +1,4 @@ -# Copyright 2021-2023 David Robillard +# Copyright 2021-2025 David Robillard # SPDX-License-Identifier: 0BSD OR ISC # Suppress some additional C warnings in tests @@ -148,4 +148,6 @@ subdir('headers') # C++ / Objective C++ # ####################### -subdir('cpp') +if is_variable('cpp') + subdir('cpp') +endif -- cgit v1.2.1