diff options
author | Axel Huebl <axel.huebl@plasma.ninja> | 2017-08-08 16:14:40 +0200 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2017-08-08 09:14:40 -0500 |
commit | 6e721bab6ae69a0e29c77fd38520b28f9ff009af (patch) | |
tree | b5ded5f3c15e2a1453744b2973ef1754f88cf33f | |
parent | f74eaa874a9a70cd1d62401cd9e349fd824d14b2 (diff) | |
download | spack-6e721bab6ae69a0e29c77fd38520b28f9ff009af.tar.gz spack-6e721bab6ae69a0e29c77fd38520b28f9ff009af.tar.bz2 spack-6e721bab6ae69a0e29c77fd38520b28f9ff009af.tar.xz spack-6e721bab6ae69a0e29c77fd38520b28f9ff009af.zip |
IceT: Ill-Place CMake Modules (#5014)
IceT places its CMake module in the wrong directory,
which is not included in the default CMake search paths.
This fixes it for *directly* depending packages without the
need to add
```yaml
icet:
environment:
prepend_path:
CMAKE_PREFIX_PATH: '${PREFIX}/lib'
```
to the `modules.yaml` as a workaround.
-rw-r--r-- | var/spack/repos/builtin/packages/icet/package.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/icet/package.py b/var/spack/repos/builtin/packages/icet/package.py index 126375c6c2..b2ff89ac69 100644 --- a/var/spack/repos/builtin/packages/icet/package.py +++ b/var/spack/repos/builtin/packages/icet/package.py @@ -40,3 +40,7 @@ class Icet(CMakePackage): def cmake_args(self): return ['-DICET_USE_OPENGL:BOOL=OFF'] + + def setup_dependent_environment(self, spack_env, run_env, dependent_spec): + """Work-around for ill-placed CMake modules""" + spack_env.prepend_path('CMAKE_PREFIX_PATH', self.prefix.lib) |