Skip to content

Commit

Permalink
cmake: Add support for the Linux CMake registry (fixes mesonbuild#9418)
Browse files Browse the repository at this point in the history
  • Loading branch information
mensinda committed Oct 21, 2021
1 parent 939394e commit 7ed9ac8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mesonbuild/dependencies/cmake.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,12 @@ def search_lib_dirs(path: str) -> bool:
if env_path and find_module(env_path):
return True

# Check the Linux CMake registry
linux_reg = Path.home() / '.cmake' / 'packages'
for p in [linux_reg / name, linux_reg / lname]:
if p.exists():
return True

return False

def _detect_dep(self, name: str, package_version: str, modules: T.List[T.Tuple[str, bool]], components: T.List[T.Tuple[str, bool]], args: T.List[str]) -> None:
Expand Down

0 comments on commit 7ed9ac8

Please sign in to comment.