exago: fix exago missing on PYTHONPATH when +python (#40748)

This commit is contained in:
Cameron Rutherford 2023-10-30 03:35:36 -04:00 committed by GitHub
parent bd1bb7d1ba
commit 7739c54eb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,10 +62,14 @@ class Exago(CMakePackage, CudaPackage, ROCmPackage):
variant("raja", default=False, description="Enable/Disable RAJA")
variant("python", default=True, when="@1.4:", description="Enable/Disable Python bindings")
variant("logging", default=True, description="Enable/Disable spdlog based logging")
conflicts(
"+python", when="+ipopt+rocm", msg="Python bindings require -fPIC with Ipopt for rocm."
)
# Adds ExaGO's python wrapper to PYTHONPATH
extends("python", when="+python")
# Solver options
variant("hiop", default=False, description="Enable/Disable HiOp")
variant("ipopt", default=False, description="Enable/Disable IPOPT")