simulationio: Explicitly enable/disable support for dependent packages (#34803)

* simulationio: Explicitly enable/disable support for dependent packages

* simulationio: Remove unused local variable
This commit is contained in:
Erik Schnetter 2023-01-10 05:18:39 -05:00 committed by GitHub
parent 0d96b0b311
commit ae3a1618a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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