summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorJeffrey Salmond <js947@users.noreply.github.com>2017-03-22 19:53:05 +0000
committerAdam J. Stewart <ajstewart426@gmail.com>2017-03-22 14:53:05 -0500
commitf225741d07571b8b5c7da338b5b62715026e2c52 (patch)
tree2e5d4519c15aee9bc919c78fc4e5a87423daca03 /var
parent7e7045e0ca2ee188ac6ed52a59a38e90aa24a6e7 (diff)
downloadspack-f225741d07571b8b5c7da338b5b62715026e2c52.tar.gz
spack-f225741d07571b8b5c7da338b5b62715026e2c52.tar.bz2
spack-f225741d07571b8b5c7da338b5b62715026e2c52.tar.xz
spack-f225741d07571b8b5c7da338b5b62715026e2c52.zip
configure vtk with external hdf5 and netcdf packages (#3504)
* configure vtk with external hdf5 and netcdf packages * remove ~mpi constraints from hdf5 and netcdf
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/vtk/package.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/vtk/package.py b/var/spack/repos/builtin/packages/vtk/package.py
index 36d18a0878..c577949c3a 100644
--- a/var/spack/repos/builtin/packages/vtk/package.py
+++ b/var/spack/repos/builtin/packages/vtk/package.py
@@ -46,6 +46,9 @@ class Vtk(CMakePackage):
patch('gcc.patch', when='@6.1.0')
depends_on('qt')
+ depends_on('hdf5')
+ depends_on('netcdf')
+ depends_on('netcdf-cxx')
extends('python', when='+python')
@@ -64,6 +67,11 @@ class Vtk(CMakePackage):
cmake_args.extend([
'-DBUILD_SHARED_LIBS=ON',
'-DVTK_RENDERING_BACKEND:STRING={0}'.format(opengl_ver),
+ '-DVTK_USE_SYSTEM_HDF5=ON',
+ '-DVTK_USE_SYSTEM_NETCDF=ON',
+ '-DNETCDF_DIR={0}'.format(spec['netcdf'].prefix),
+ '-DNETCDF_C_ROOT={0}'.format(spec['netcdf'].prefix),
+ '-DNETCDF_CXX_ROOT={0}'.format(spec['netcdf-cxx'].prefix),
# Enable/Disable wrappers for Python.
'-DVTK_WRAP_PYTHON={0}'.format(