From fe2c62ef81449fd48f32a278c87f04ab07acd5fc Mon Sep 17 00:00:00 2001 From: Juan Sanchez Date: Mon, 13 May 2024 17:31:01 +0200 Subject: [PATCH 1/2] add-cmakedeps property --- reference/tools/cmake/cmakedeps.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reference/tools/cmake/cmakedeps.rst b/reference/tools/cmake/cmakedeps.rst index 5e0fa1dc4865..59debe535846 100644 --- a/reference/tools/cmake/cmakedeps.rst +++ b/reference/tools/cmake/cmakedeps.rst @@ -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 ``ConfigVersion.cmake`` file - **system_package_version**: version of the package used to generate the ``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( )`` calls. - +- **cmake_additional_variables_prefixes**: List of prefixes to be used when creating CMake variables in the config + files. This variables are created with the ``file_name`` as prefix by default, but setting this property will create + additional variables with the specified prefixes. Example: From 443349c15fba93a7ffde2bc2ff5198ce19da08aa Mon Sep 17 00:00:00 2001 From: Juan <35701596+juansblanco@users.noreply.github.com> Date: Tue, 14 May 2024 09:54:25 +0200 Subject: [PATCH 2/2] Update reference/tools/cmake/cmakedeps.rst MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Rubén Rincón Blanco --- reference/tools/cmake/cmakedeps.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/tools/cmake/cmakedeps.rst b/reference/tools/cmake/cmakedeps.rst index 59debe535846..d328018b7ae9 100644 --- a/reference/tools/cmake/cmakedeps.rst +++ b/reference/tools/cmake/cmakedeps.rst @@ -251,7 +251,7 @@ The following properties affect the CMakeDeps generator: - **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 ``ConfigVersion.cmake`` file - **system_package_version**: version of the package used to generate the ``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( )`` calls. - **cmake_additional_variables_prefixes**: List of prefixes to be used when creating CMake variables in the config - files. This variables are created with the ``file_name`` as prefix by default, but setting this property will create + 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: