diff --git a/var/spack/repos/builtin/packages/simulationio/package.py b/var/spack/repos/builtin/packages/simulationio/package.py index 115a2baa5e..88d06d229a 100644 --- a/var/spack/repos/builtin/packages/simulationio/package.py +++ b/var/spack/repos/builtin/packages/simulationio/package.py @@ -44,10 +44,14 @@ class Simulationio(CMakePackage): extends("python") def cmake_args(self): - spec = self.spec - options = [] - if "+pic" in spec: - options.append("-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=true") + from_variant = self.define_from_variant + options = [ + from_variant("ENABLE_ASDF_CXX", "asdf"), + from_variant("ENABLE_HDF5", "hdf5"), + from_variant("ENABLE_RNPL", "rnpl"), + from_variant("ENABLE_SILO", "silo"), + from_variant("CMAKE_POSITION_INDEPENDENT_CODE", "pic"), + ] return options def check(self):