summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDhanannjay Deo <dhanannjay.deo@kitware.com>2016-03-31 10:29:47 -0400
committerDhanannjay Deo <dhanannjay.deo@kitware.com>2016-03-31 10:39:34 -0400
commit123996aad0c58bab7de6f615159b2fd7b44c7369 (patch)
tree66c6048819fd1dee0b4c100adc3b3d5a299d8839
parent0bcfd095362c5d04b9add7ebc882b74fad68f9dd (diff)
downloadspack-123996aad0c58bab7de6f615159b2fd7b44c7369.tar.gz
spack-123996aad0c58bab7de6f615159b2fd7b44c7369.tar.bz2
spack-123996aad0c58bab7de6f615159b2fd7b44c7369.tar.xz
spack-123996aad0c58bab7de6f615159b2fd7b44c7369.zip
Fix build for vtk6.1.0
-rw-r--r--var/spack/repos/builtin/packages/vtk/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/vtk/package.py b/var/spack/repos/builtin/packages/vtk/package.py
index aeb03fe0a3..b29d52d0f0 100644
--- a/var/spack/repos/builtin/packages/vtk/package.py
+++ b/var/spack/repos/builtin/packages/vtk/package.py
@@ -39,6 +39,10 @@ class Vtk(Package):
if spec['qt'].satisfies('@5'):
cmake_args.append("-DVTK_QT_VERSION:STRING=5")
+ if spec.satisfies("@6.1.0"):
+ cmake_args.append("-DCMAKE_C_FLAGS=-DGLX_GLXEXT_LEGACY")
+ cmake_args.append("-DCMAKE_CXX_FLAGS=-DGLX_GLXEXT_LEGACY")
+
cmake(*cmake_args)
make()
make("install")