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:
parent
0d96b0b311
commit
ae3a1618a2
1 changed files with 8 additions and 4 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue