Skip to content

Commit

Permalink
Update package_info.rst (#3815)
Browse files Browse the repository at this point in the history
Co-authored-by: Abril Rincón Blanco <git@rinconblanco.es>
  • Loading branch information
ErniGH and AbrilRBS authored Aug 23, 2024
1 parent 6713c07 commit 9f12731
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion reference/conanfile/methods/package_info.rst
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,15 @@ The value of a property can be of any type. Check each generator reference to se
.. code-block:: python
def set_property(self, property_name, value)
def get_property(self, property_name):
def get_property(self, property_name, check_type=None):
Example:

.. code-block:: python
def package_info(self):
self.cpp_info.set_property("cmake_find_mode", "both")
self.cpp_info.get_property("cmake_find_mode", check_type=str)
Components
Expand Down

0 comments on commit 9f12731

Please sign in to comment.