icet: add variants to enable 'opengl' and shared libraries. (#27281)
This commit is contained in:
parent
a783f92fba
commit
bb3a1dc7a5
1 changed files with 6 additions and 1 deletions
|
@ -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"""
|
||||
|
|
Loading…
Reference in a new issue