From bb3a1dc7a5f8deefe68db9f751ea3d8f24e4777b Mon Sep 17 00:00:00 2001 From: Gilles Grospellier Date: Fri, 11 Feb 2022 10:26:29 +0100 Subject: icet: add variants to enable 'opengl' and shared libraries. (#27281) --- var/spack/repos/builtin/packages/icet/package.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/icet/package.py b/var/spack/repos/builtin/packages/icet/package.py index f69636aef8..0684942fd0 100644 --- a/var/spack/repos/builtin/packages/icet/package.py +++ b/var/spack/repos/builtin/packages/icet/package.py @@ -17,10 +17,15 @@ class Icet(CMakePackage): version('develop', branch='master') version('2.1.1', sha256='04cc5b7aa5b3ec95b255febdcfc2312e553ce3db5ca305526803d5737561ec32') + variant('opengl', default=False, description="Use opengl") + variant('shared', default=True, description='Enable shared library') + depends_on('mpi') + depends_on('gl', when="+opengl") def cmake_args(self): - return ['-DICET_USE_OPENGL:BOOL=OFF'] + return [self.define_from_variant("ICET_USE_OPENGL", "opengl"), + self.define_from_variant("BUILD_SHARED_LIBS", "shared")] def setup_dependent_build_environment(self, env, dependent_spec): """Work-around for ill-placed CMake modules""" -- cgit v1.2.3-70-g09d2