From 3a4388e51dee5e7e58f1e5ad4e60fb73b4aacf08 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Fri, 2 Aug 2019 14:29:40 -0400 Subject: Fix legacy env var support with cross Fix #3969 --- mesonbuild/cmake/executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/cmake/executor.py') diff --git a/mesonbuild/cmake/executor.py b/mesonbuild/cmake/executor.py index 7b9edf7b0..a41b293b4 100644 --- a/mesonbuild/cmake/executor.py +++ b/mesonbuild/cmake/executor.py @@ -66,7 +66,7 @@ class CMakeExecutor: # Create an iterator of options def search(): # Lookup in cross or machine file. - potential_cmakepath = environment.binaries[self.for_machine].lookup_entry('cmake') + potential_cmakepath = environment.lookup_binary_entry(self.for_machine, 'cmake') if potential_cmakepath is not None: mlog.debug('CMake binary for %s specified from cross file, native file, or env var as %s.', self.for_machine, potential_cmakepath) yield ExternalProgram.from_entry('cmake', potential_cmakepath) -- cgit v1.2.3