summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Lipsa <dan.lipsa@kitware.com>2019-12-13 16:19:31 -0500
committerAdam J. Stewart <ajstewart426@gmail.com>2019-12-13 15:19:31 -0600
commit0167ceb10437311e6c8ae5541492e0034130214f (patch)
tree9eb4133af2d7d1d702f8833d681ae3738afe789b
parent83baf35246c4de05cf08d18e384139c64f3dfe89 (diff)
downloadspack-0167ceb10437311e6c8ae5541492e0034130214f.tar.gz
spack-0167ceb10437311e6c8ae5541492e0034130214f.tar.bz2
spack-0167ceb10437311e6c8ae5541492e0034130214f.tar.xz
spack-0167ceb10437311e6c8ae5541492e0034130214f.zip
Add shared option to ParaView. (#14131)
* Add shared option to ParaView. * Use append for one attribute
-rw-r--r--var/spack/repos/builtin/packages/paraview/package.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/paraview/package.py b/var/spack/repos/builtin/packages/paraview/package.py
index 998b14182a..164e5e855f 100644
--- a/var/spack/repos/builtin/packages/paraview/package.py
+++ b/var/spack/repos/builtin/packages/paraview/package.py
@@ -44,10 +44,13 @@ class Paraview(CMakePackage, CudaPackage):
variant('opengl2', default=True, description='Enable OpenGL2 backend')
variant('examples', default=False, description="Build examples")
variant('hdf5', default=False, description="Use external HDF5")
+ variant('shared', default=True,
+ description='Builds a shared version of the library')
conflicts('+python', when='+python3')
conflicts('+python', when='@5.6:')
conflicts('+python3', when='@:5.5')
+ conflicts('+shared', when='+cuda')
# Workaround for
# adding the following to your packages.yaml
@@ -235,6 +238,15 @@ class Paraview(CMakePackage, CudaPackage):
'-DMPI_Fortran_COMPILER:PATH=%s' % spec['mpi'].mpifc
])
+ if '+shared' in spec:
+ cmake_args.append(
+ '-DPARAVIEW_BUILD_SHARED_LIBS:BOOL=ON'
+ )
+ else:
+ cmake_args.append(
+ '-DPARAVIEW_BUILD_SHARED_LIBS:BOOL=OFF'
+ )
+
if '+cuda' in spec:
cmake_args.extend([
'-DPARAVIEW_USE_CUDA:BOOL=ON',