diff --git a/var/spack/repos/builtin/packages/vtk-m/package.py b/var/spack/repos/builtin/packages/vtk-m/package.py index 68ee6ff6983..c3f5a703288 100644 --- a/var/spack/repos/builtin/packages/vtk-m/package.py +++ b/var/spack/repos/builtin/packages/vtk-m/package.py @@ -106,7 +106,7 @@ def cmake_args(self): # logging support if "+logging" in spec: - if spec.satisfies('@:1.2.0'): + if not spec.satisfies('@1.3.0:,ascent_ver'): raise InstallError('logging is not supported for\ vtkm version lower than 1.3') options.append("-DVTKm_ENABLE_LOGGING:BOOL=ON") @@ -115,7 +115,7 @@ def cmake_args(self): # mpi support if "+mpi" in spec: - if spec.satisfies('@:1.2.0'): + if not spec.satisfies('@1.3.0:,ascent_ver'): raise InstallError('mpi is not supported for\ vtkm version lower than 1.3') options.append("-DVTKm_ENABLE_MPI:BOOL=ON") @@ -125,7 +125,7 @@ def cmake_args(self): # openmp support if "+openmp" in spec: # openmp is added since version 1.3.0 - if spec.satisfies('@:1.2.0'): + if not spec.satisfies('@1.3.0:,ascent_ver'): raise InstallError('OpenMP is not supported for\ vtkm version lower than 1.3') options.append("-DVTKm_ENABLE_OPENMP:BOOL=ON")