Docs: include cmake spec property for the command (#44956)

This commit is contained in:
Tamara Dahlgren 2024-07-01 10:28:26 -07:00 committed by GitHub
parent 7c65655c7e
commit 61d6fc70e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5589,7 +5589,8 @@ compiler configuration. This is accomplished by setting the package's
Setting the property to ``True`` ensures access to the compiler through Setting the property to ``True`` ensures access to the compiler through
canonical environment variables (e.g., ``CC``, ``CXX``, ``FC``, ``F77``). canonical environment variables (e.g., ``CC``, ``CXX``, ``FC``, ``F77``).
It also gives access to build dependencies like ``cmake`` through their It also gives access to build dependencies like ``cmake`` through their
``spec objects`` (e.g., ``self.spec["cmake"].prefix.bin.cmake``). ``spec objects`` (e.g., ``self.spec["cmake"].prefix.bin.cmake`` for the
path or ``self.spec["cmake"].command`` for the ``Executable`` instance).
Be sure to add the property at the top of the package class under other Be sure to add the property at the top of the package class under other
properties like the ``homepage``. properties like the ``homepage``.