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.
This commit is contained in:
Axel Huebl 2017-08-08 16:14:40 +02:00 committed by Adam J. Stewart
parent f74eaa874a
commit 6e721bab6a

View file

@ -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)