summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>2021-08-06 13:06:14 +0300
committerTomi Valkeinen <tomi.valkeinen@ideasonboard.com>2021-08-06 13:09:13 +0300
commit824bbb1f4cd062d66b457faca50f904b34dfd96c (patch)
tree0855749b10bd66281982ab42f8a196f94c27c3a8 /py
parent54f591ec0de61dd192baf781c9b2ec87d5b461f7 (diff)
meson: simplify pybind dependency handling
Diffstat (limited to 'py')
-rw-r--r--py/pykms/meson.build12
1 files changed, 5 insertions, 7 deletions
diff --git a/py/pykms/meson.build b/py/pykms/meson.build
index b29cd9f..e030ce8 100644
--- a/py/pykms/meson.build
+++ b/py/pykms/meson.build
@@ -4,13 +4,11 @@ if py3_dep.found() == false
subdir_done()
endif
-if get_option('system-pybind11').enabled()
- pybind11_dep = dependency('pybind11')
-elif get_option('system-pybind11').disabled()
- pybind11_proj = subproject('pybind11')
- pybind11_dep = pybind11_proj.get_variable('pybind11_dep')
-else
- pybind11_dep = dependency('pybind11', fallback : ['pybind11', 'pybind11_dep'])
+pybind11_dep = dependency('pybind11', fallback : ['pybind11', 'pybind11_dep'],
+ required : get_option('pykms'))
+
+if pybind11_dep.found() == false
+ subdir_done()
endif
pykms_sources = files([