summaryrefslogtreecommitdiff
path: root/mesonbuild/cmake
diff options
context:
space:
mode:
authorDaniele Nicolodi <daniele@grinta.net>2025-10-19 15:44:04 +0200
committerDylan Baker <dylan@pnwbakers.com>2025-10-24 08:13:21 -0700
commita907c66cf93b1ded17aebd1ac35a1096d2866cf8 (patch)
tree4d3f2ba63af31a39a64aafc0e2d87f1724a1d43a /mesonbuild/cmake
parentd87fd34c68c441ecf04eb2ff4bd4857406c268e9 (diff)
downloadmeson-a907c66cf93b1ded17aebd1ac35a1096d2866cf8.tar.gz
cmake: Do not pass install prefix explicitly to the CMake interpreter
There is no point in doing so as it can be readily obtained from the environment. This in preparation of extracting more installation location from the environment.
Diffstat (limited to 'mesonbuild/cmake')
-rw-r--r--mesonbuild/cmake/interpreter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/cmake/interpreter.py b/mesonbuild/cmake/interpreter.py
index 54c9ae696..17c076e69 100644
--- a/mesonbuild/cmake/interpreter.py
+++ b/mesonbuild/cmake/interpreter.py
@@ -786,12 +786,12 @@ class ConverterCustomTarget:
mlog.log(' -- depends: ', mlog.bold(str(self.depends)))
class CMakeInterpreter:
- def __init__(self, subdir: Path, install_prefix: Path, env: 'Environment', backend: 'Backend'):
+ def __init__(self, subdir: Path, env: 'Environment', backend: 'Backend'):
self.subdir = subdir
self.src_dir = Path(env.get_source_dir(), subdir)
self.build_dir_rel = subdir / '__CMake_build'
self.build_dir = Path(env.get_build_dir()) / self.build_dir_rel
- self.install_prefix = install_prefix
+ self.install_prefix = Path(T.cast('str', env.coredata.optstore.get_value_for(OptionKey('prefix'))))
self.env = env
self.for_machine = MachineChoice.HOST # TODO make parameter
self.backend_name = backend.name