Skip to content

Commit 7fcd0f1

Browse files
memshardedAbrilRBS
andauthored
fix cmake_set_interface_link_directories (#4015)
* fix cmake_set_interface_link_directories * Update reference/tools/cmake/cmakedeps.rst --------- Co-authored-by: Abril Rincón Blanco <[email protected]>
1 parent 6d57ef1 commit 7fcd0f1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

reference/tools/cmake/cmakedeps.rst

+1-2
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,7 @@ The following properties affect the CMakeDeps generator:
245245
- **cmake_module_target_name**: Same as **cmake_target_name** but when generating modules with ``cmake_find_mode=module/both``. If not specified it will default to **cmake_target_name**.
246246
- **cmake_build_modules**: List of ``.cmake`` files (route relative to root package folder) that are automatically
247247
included when the consumer run the ``find_package()``. This property cannot be set in the components, only in the root ``self.cpp_info``.
248-
- **cmake_set_interface_link_directories**: boolean value that should be only used by dependencies that don't declare `self.cpp_info.libs` but have ``#pragma comment(lib, "foo")`` (automatic link) declared at the public headers. Those dependencies should
249-
add this property to their *conanfile.py* files at root ``cpp_info`` level (components not supported for now).
248+
- **cmake_set_interface_link_directories**: (**deprecated** in 2.14). It was used for ``#pragma comment(lib, "foo")`` a long while ago, but it is no longer necessary for ``CMakeDeps`` generator. In the new ``CMakeConfigDeps`` generator, it will be necessary to correctly specify the library details in the ``cpp_info``, aligned with the CPS practices.
250249
- **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.
251250
- **cmake_config_version_compat**: By default ``SameMajorVersion``, it can take the values ``"AnyNewerVersion", "SameMajorVersion", "SameMinorVersion", "ExactVersion"``. It will use that policy in the generated ``<PackageName>ConfigVersion.cmake`` file
252251
- **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.

0 commit comments

Comments
 (0)