Skip to content

Commit

Permalink
Add CMakeDeps property to create additional CMake variables with diff…
Browse files Browse the repository at this point in the history
…erent prefixes (#3721)

* add-cmakedeps property

* Update reference/tools/cmake/cmakedeps.rst

Co-authored-by: Rubén Rincón Blanco <git@rinconblanco.es>

---------

Co-authored-by: Rubén Rincón Blanco <git@rinconblanco.es>
  • Loading branch information
juansblanco and AbrilRBS authored May 14, 2024
1 parent 0306178 commit 3cf2a48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion reference/tools/cmake/cmakedeps.rst
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,9 @@ The following properties affect the CMakeDeps generator:
- **nosoname**: boolean value that should be used only by dependencies that are defined as ``SHARED`` and represent a library built without the ``soname`` flag option.
- **cmake_config_version_compat**: (preview) By default ``SameMajorVersion``, it can take the values ``"AnyNewerVersion", "SameMajorVersion", "SameMinorVersion", "ExactVersion"``. It will use that policy in the generated ``<PackageName>ConfigVersion.cmake`` file
- **system_package_version**: version of the package used to generate the ``<PackageName>ConfigVersion.cmake`` file. Can be useful when creating system packages or other wrapper packages, where the conan package version is different to the eventually referenced package version to keep compatibility to ``find_package(<PackageName> <Version>)`` calls.

- **cmake_additional_variables_prefixes**: List of prefixes to be used when creating CMake variables in the config
files. These variables are created with ``file_name`` as prefix by default, but setting this property will create
additional variables with the specified prefixes.

Example:

Expand Down

0 comments on commit 3cf2a48

Please sign in to comment.