From 6e721bab6ae69a0e29c77fd38520b28f9ff009af Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Tue, 8 Aug 2017 16:14:40 +0200 Subject: [PATCH] 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. --- var/spack/repos/builtin/packages/icet/package.py | 4 ++++ 1 file changed, 4 insertions(+) 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)