Skip to content

Commit 3cf2a48

Browse files
Add CMakeDeps property to create additional CMake variables with different 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>
1 parent 0306178 commit 3cf2a48

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

reference/tools/cmake/cmakedeps.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,9 @@ The following properties affect the CMakeDeps generator:
250250
- **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.
251251
- **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
252252
- **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.
253-
253+
- **cmake_additional_variables_prefixes**: List of prefixes to be used when creating CMake variables in the config
254+
files. These variables are created with ``file_name`` as prefix by default, but setting this property will create
255+
additional variables with the specified prefixes.
254256

255257
Example:
256258

0 commit comments

Comments
 (0)