diff options
| author | Jussi Pakkanen <jussi.pakkanen@mailbox.org> | 2025-08-29 22:51:48 +0300 |
|---|---|---|
| committer | Jussi Pakkanen <jussi.pakkanen@mailbox.org> | 2025-09-03 19:51:04 +0300 |
| commit | 80917ca8c1a5af499cc6e004ad5d5a050da9045e (patch) | |
| tree | 0cbaabb901ed0c0791d287dfdcf6e6da8b90e005 | |
| parent | 6a9a81619c139d0f6ae3d265f7366e61615d92a1 (diff) | |
| download | meson-80917ca8c1a5af499cc6e004ad5d5a050da9045e.tar.gz | |
Boost python must have a library component.
| -rw-r--r-- | mesonbuild/dependencies/boost.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mesonbuild/dependencies/boost.py b/mesonbuild/dependencies/boost.py index e153e8f13..fdb35d432 100644 --- a/mesonbuild/dependencies/boost.py +++ b/mesonbuild/dependencies/boost.py @@ -440,6 +440,8 @@ class BoostDependency(SystemDependency): mlog.debug(' - potential library dirs: {}'.format([x.as_posix() for x in lib_dirs])) mlog.debug(' - potential include dirs: {}'.format([x.path.as_posix() for x in inc_dirs])) + must_have_library = ['boost_python'] + # 2. Find all boost libraries libs: T.List[BoostLibraryFile] = [] for i in lib_dirs: @@ -483,6 +485,9 @@ class BoostDependency(SystemDependency): not_found: T.List[str] = [] for boost_modulename in not_found_as_libs: assert boost_modulename.startswith('boost_') + if boost_modulename in must_have_library: + not_found.append(boost_modulename) + continue include_subdir = boost_modulename.replace('boost_', 'boost/', 1) headerdir_found = False for inc_dir in inc_dirs: |
