actsvg: use Spack pybind11 package (#50191)
* actsvg: use Spack pybind11 package This commit makes the actsvg package use the Spack-provided pybind11 package rather than having it download its own copy. * Make pybind dependency more flexible
This commit is contained in:
parent
fc3b732b14
commit
38daed0a78
@ -50,6 +50,7 @@ class Actsvg(CMakePackage):
|
|||||||
depends_on("boost +program_options", when="+examples")
|
depends_on("boost +program_options", when="+examples")
|
||||||
depends_on("googletest", when="+examples")
|
depends_on("googletest", when="+examples")
|
||||||
depends_on("python@3.8:", when="+python")
|
depends_on("python@3.8:", when="+python")
|
||||||
|
depends_on("py-pybind11@2.10:", when="+python @0.4.42:")
|
||||||
|
|
||||||
def cmake_args(self):
|
def cmake_args(self):
|
||||||
args = [
|
args = [
|
||||||
@ -58,5 +59,8 @@ def cmake_args(self):
|
|||||||
self.define_from_variant("ACTSVG_BUILD_PYTHON_BINDINGS", "python"),
|
self.define_from_variant("ACTSVG_BUILD_PYTHON_BINDINGS", "python"),
|
||||||
self.define_from_variant("ACTSVG_BUILD_WEB", "web"),
|
self.define_from_variant("ACTSVG_BUILD_WEB", "web"),
|
||||||
self.define("ACTSVG_BUILD_TESTING", self.run_tests),
|
self.define("ACTSVG_BUILD_TESTING", self.run_tests),
|
||||||
|
self.define("ACTSVG_USE_SYSTEM_LIBS", True),
|
||||||
|
# The pybind11 loading does not respect `ACTSVG_USE_SYSTEM_LIBS`.
|
||||||
|
self.define("ACTSVG_USE_SYSTEM_PYBIND11", True),
|
||||||
]
|
]
|
||||||
return args
|
return args
|
||||||
|
Loading…
Reference in New Issue
Block a user