diff options
author | David Robillard <d@drobilla.net> | 2022-03-14 17:31:29 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-03-14 17:31:29 -0400 |
commit | c6ee8bbe94069f961238a2f0fd11fa0824172b24 (patch) | |
tree | ac12144e160c66321ce114df9b0484ca8779fbfb | |
parent | b828da5dc4cf9681ffb0c1ef1153c95b6d3c55c3 (diff) | |
download | pugl-c6ee8bbe94069f961238a2f0fd11fa0824172b24.tar.gz pugl-c6ee8bbe94069f961238a2f0fd11fa0824172b24.tar.bz2 pugl-c6ee8bbe94069f961238a2f0fd11fa0824172b24.zip |
Make C++ compiler optional
-rw-r--r-- | meson.build | 5 |
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 |