From 130706d1b8be047d230ac8e064c59ea31086ff5b Mon Sep 17 00:00:00 2001 From: Cameron Smith Date: Sat, 8 Dec 2018 02:08:58 -0500 Subject: [PATCH] pumi: shared variant (#10057) --- var/spack/repos/builtin/packages/pumi/package.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/var/spack/repos/builtin/packages/pumi/package.py b/var/spack/repos/builtin/packages/pumi/package.py index 02cef568e4..c891be42b5 100644 --- a/var/spack/repos/builtin/packages/pumi/package.py +++ b/var/spack/repos/builtin/packages/pumi/package.py @@ -29,6 +29,7 @@ class Pumi(CMakePackage): version('2.2.0', commit='8c7e6f13943893b2bc1ece15003e4869a0e9634f') # tag 2.2.0 version('2.1.0', commit='840fbf6ec49a63aeaa3945f11ddb224f6055ac9f') + variant('shared', default=False, description='Build shared libraries') variant('zoltan', default=False, description='Enable Zoltan Features') variant('fortran', default=False, description='Enable FORTRAN interface') @@ -44,6 +45,7 @@ def cmake_args(self): '-DENABLE_ZOLTAN=%s' % ('ON' if '+zoltan' in spec else 'OFF'), '-DCMAKE_C_COMPILER=%s' % spec['mpi'].mpicc, '-DCMAKE_CXX_COMPILER=%s' % spec['mpi'].mpicxx, + '-DBUILD_SHARED_LIBS=%s' % ('ON' if '+shared' in spec else 'OFF'), '-DCMAKE_Fortran_COMPILER=%s' % spec['mpi'].mpifc, '-DPUMI_FORTRAN_INTERFACE=%s' % ('ON' if '+fortran' in spec else 'OFF')