From 7f4bf2b2e1263d2c0900c0c15e1f65b15a79fa49 Mon Sep 17 00:00:00 2001 From: Eric Brugger Date: Thu, 21 Oct 2021 00:53:13 -0700 Subject: vtk: make use of system GLEW dependent on osmesa being disabled. (#26764) --- var/spack/repos/builtin/packages/vtk/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/vtk/package.py b/var/spack/repos/builtin/packages/vtk/package.py index f33bdce640..49de4e28b3 100644 --- a/var/spack/repos/builtin/packages/vtk/package.py +++ b/var/spack/repos/builtin/packages/vtk/package.py @@ -269,7 +269,7 @@ class Vtk(CMakePackage): cmake_args.append('-DVTK_RENDERING_BACKEND:STRING=' + opengl_ver) - if spec.satisfies('@:8.1.0'): + if spec.satisfies('@:8.1.0') and '+osmesa' not in spec: cmake_args.append('-DVTK_USE_SYSTEM_GLEW:BOOL=ON') if '+osmesa' in spec: -- cgit v1.2.3-70-g09d2