Index: python-poppler-0.4.1/meson.build =================================================================== --- python-poppler-0.4.1.orig/meson.build +++ python-poppler-0.4.1/meson.build @@ -13,7 +13,10 @@ poppler_dep = dependency('poppler-cpp', python_mod = import('python') python3 = python_mod.find_installation('python3', pure: false) -pybind11_proj = subproject('pybind11') -pybind11_dep = pybind11_proj.get_variable('pybind11_dep') +pybind11_config = find_program('pybind11-config') +pybind11_config_ret = run_command(pybind11_config, ['--includes'], check: true) +pybind11_dep = declare_dependency( + include_directories: [pybind11_config_ret.stdout().split('-I')[-1].strip()], +) subdir('src')