py-nanobind add cmake path (#40079)

* py-nanobind add cmake path

* fix style

---------

Co-authored-by: Robert Underwood <runderwood@anl.gov>
This commit is contained in:
Robert Underwood 2023-09-21 14:15:02 -04:00 committed by GitHub
parent 6859694e8e
commit ef165c80b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,3 +36,8 @@ class PyNanobind(PythonPackage):
depends_on("py-cmake@3.17:", type="build")
depends_on("py-ninja", type="build")
@property
def cmake_prefix_paths(self):
paths = [join_path(self.prefix, self.spec["python"].package.platlib, "nanobind", "cmake")]
return paths