aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-03-14 17:31:29 -0400
committerDavid Robillard <d@drobilla.net>2022-03-14 17:31:29 -0400
commitc6ee8bbe94069f961238a2f0fd11fa0824172b24 (patch)
treeac12144e160c66321ce114df9b0484ca8779fbfb
parentb828da5dc4cf9681ffb0c1ef1153c95b6d3c55c3 (diff)
downloadpugl-c6ee8bbe94069f961238a2f0fd11fa0824172b24.tar.gz
pugl-c6ee8bbe94069f961238a2f0fd11fa0824172b24.tar.bz2
pugl-c6ee8bbe94069f961238a2f0fd11fa0824172b24.zip
Make C++ compiler optional
-rw-r--r--meson.build5
1 files changed, 3 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index 88dbe8c..6eb99a3 100644
--- a/meson.build
+++ b/meson.build
@@ -22,8 +22,9 @@ cc = meson.get_compiler('c')
# Enable C++ support if we're building the examples
if get_option('examples') or get_option('tests')
- add_languages(['cpp'])
- cpp = meson.get_compiler('cpp')
+ if add_languages(['cpp'], required: false)
+ cpp = meson.get_compiler('cpp')
+ endif
endif
# Enable Objective C support if we're building for MacOS