summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Darwin <bcdarwin@gmail.com>2022-08-23 14:03:12 -0400
committerGitHub <noreply@github.com>2022-08-23 11:03:12 -0700
commit9b6b1a277da83ad21026269ebe2844beb6ec0c80 (patch)
treece82688767f532a4bc202aa852d46d363ec5f004
parenta08d6e790d3c4cfe7e084b75fdd1bfdc3981c2d5 (diff)
downloadspack-9b6b1a277da83ad21026269ebe2844beb6ec0c80.tar.gz
spack-9b6b1a277da83ad21026269ebe2844beb6ec0c80.tar.bz2
spack-9b6b1a277da83ad21026269ebe2844beb6ec0c80.tar.xz
spack-9b6b1a277da83ad21026269ebe2844beb6ec0c80.zip
minc-toolkit: add MINC_TOOLKIT environment variable at runtime (#32331)
This variable is used by some programs both internal and external to the toolkit itself to discover shared objects, data, etc.
-rw-r--r--var/spack/repos/builtin/packages/minc-toolkit/package.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/minc-toolkit/package.py b/var/spack/repos/builtin/packages/minc-toolkit/package.py
index 30273d4afc..ddf20c7bfc 100644
--- a/var/spack/repos/builtin/packages/minc-toolkit/package.py
+++ b/var/spack/repos/builtin/packages/minc-toolkit/package.py
@@ -43,3 +43,6 @@ class MincToolkit(CMakePackage):
# should be packaged separately with newer ITK
"-DMT_BUILD_ELASTIX=OFF",
]
+
+ def setup_run_environment(self, env):
+ env.set("MINC_TOOLKIT", self.prefix)