Bugfix: Do not raise InstallError for ascent_ver (#17578)

This commit is contained in:
Tamara Dahlgren 2020-07-20 18:32:56 -07:00 committed by GitHub
parent 897e80e596
commit 86ec698a33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")