minc-toolkit: allow building shared libs and enable by default (#24909)

This commit is contained in:
Ben Darwin 2021-07-19 07:08:36 -04:00 committed by GitHub
parent 846ab65cc0
commit efd9884e83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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