diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/g2/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/g2/package.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/g2/package.py b/var/spack/repos/builtin/packages/g2/package.py index 64b8da9dee..40cd8aa5f9 100644 --- a/var/spack/repos/builtin/packages/g2/package.py +++ b/var/spack/repos/builtin/packages/g2/package.py @@ -23,3 +23,10 @@ class G2(CMakePackage): depends_on('jasper') depends_on('libpng') + + def setup_run_environment(self, env): + for suffix in ('4', 'd'): + lib = find_libraries('libg2_' + suffix, root=self.prefix, + shared=False, recursive=True) + env.set('G2_LIB' + suffix, lib[0]) + env.set('G2_INC' + suffix, join_path(self.prefix, 'include_' + suffix)) |