diff options
Diffstat (limited to 'mesonbuild/cmake/executor.py')
-rw-r--r-- | mesonbuild/cmake/executor.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mesonbuild/cmake/executor.py b/mesonbuild/cmake/executor.py index cbe75f3..0c704f9 100644 --- a/mesonbuild/cmake/executor.py +++ b/mesonbuild/cmake/executor.py @@ -11,7 +11,6 @@ import os from .. import mlog from ..mesonlib import PerMachine, Popen_safe, version_compare, is_windows -from ..options import OptionKey from ..programs import find_external_program, NonExistingExternalProgram if T.TYPE_CHECKING: @@ -52,7 +51,9 @@ class CMakeExecutor: self.cmakebin = None return - self.prefix_paths = self.environment.coredata.optstore.get_value(OptionKey('cmake_prefix_path', machine=self.for_machine)) + prefpath = self.environment.coredata.optstore.get_value_for('cmake_prefix_path') + assert isinstance(prefpath, list) + self.prefix_paths = prefpath if self.prefix_paths: self.extra_cmake_args += ['-DCMAKE_PREFIX_PATH={}'.format(';'.join(self.prefix_paths))] |