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:
parent
f74eaa874a
commit
6e721bab6a
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue