minc-toolkit: allow building shared libs and enable by default (#24909)
This commit is contained in:
parent
846ab65cc0
commit
efd9884e83
@ -15,6 +15,8 @@ class MincToolkit(CMakePackage):
|
||||
version('1.9.18.1', commit="38597c464b6e93eda680ab4a9e903366d53d7737",
|
||||
submodules=True)
|
||||
|
||||
variant('shared', default=True,
|
||||
description="Build shared libraries")
|
||||
variant('visualisation', default=False,
|
||||
description="Build visual tools (Display, register, etc.)")
|
||||
|
||||
@ -25,7 +27,8 @@ class MincToolkit(CMakePackage):
|
||||
depends_on('freeglut', when="+visualisation")
|
||||
|
||||
def cmake_args(self):
|
||||
return [self.define_from_variant('MT_BUILD_VISUAL_TOOLS', 'visualisation'),
|
||||
return [self.define_from_variant('MT_BUILD_SHARED_LIBS', 'shared'),
|
||||
self.define_from_variant('MT_BUILD_VISUAL_TOOLS', 'visualisation'),
|
||||
# newer ANTs packaged separately
|
||||
"-DMT_BUILD_ANTS=OFF",
|
||||
# build error; should package newer c3d separately
|
||||
|
Loading…
Reference in New Issue
Block a user