Add shared option to ParaView. (#14131)
* Add shared option to ParaView. * Use append for one attribute
This commit is contained in:
parent
83baf35246
commit
0167ceb104
@ -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 @@ def nvariant_bool(feature):
|
||||
'-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',
|
||||
|
Loading…
Reference in New Issue
Block a user