Skip to content

Commit cacb207

Browse files
jcar87czoido
andauthored
Clarify CMAKE_RUNTIME_LIB_DIRS (#3759)
* Clarify CMAKE_RUNTIME_LIB_DIRS * Update reference/tools/cmake/cmaketoolchain.rst --------- Co-authored-by: Carlos Zoido <mrgalleta@gmail.com>
1 parent 2db074f commit cacb207

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

reference/tools/cmake/cmaketoolchain.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -316,14 +316,14 @@ This is done to avoid potential name clashes with users own presets.
316316
CONAN_RUNTIME_LIB_DIRS
317317
^^^^^^^^^^^^^^^^^^^^^^
318318

319-
This variable defines the directories containing the runtime libraries necessary to
320-
run the linked executables in the project of all host dependencies. These libraries are essential
321-
to ensure that the project compiles and runs correctly, providing the necessary dependencies
322-
during runtime. This is most useful when relying on CMake functionality to collect runtime dependencies,
323-
for example to create a relocatable bundle.
319+
This variable contains a list of directories that contain runtime libraries (like DLLs)
320+
from all dependencies in the host context. This is intended to be used when relying on
321+
CMake functionality to collect shared libraries to create a relocatable bundle, as
322+
per the example below.
324323

325324

326-
Just add the ``CONAN_RUNTIME_LIB_DIRS`` variable in our ``CMakeLists.txt`` file.
325+
Just pass the ``CONAN_RUNTIME_LIB_DIRS`` variable to the ``DIRECTORIES`` argument
326+
in the ``install(RUNTIME_DEPENDENCY_SET ...)``` invocation.
327327

328328
.. code:: cmake
329329
@@ -681,4 +681,4 @@ CMakeToolchain is affected by these ``[conf]`` variables:
681681
* ``fortran``: will set ``CMAKE_Fortran_COMPILER`` in *conan_toolchain.cmake*.
682682
* ``asm``: will set ``CMAKE_ASM_COMPILER`` in *conan_toolchain.cmake*.
683683
* ``hip``: will set ``CMAKE_HIP_COMPILER`` in *conan_toolchain.cmake*.
684-
* ``ispc``: will set ``CMAKE_ISPC_COMPILER`` in *conan_toolchain.cmake*.
684+
* ``ispc``: will set ``CMAKE_ISPC_COMPILER`` in *conan_toolchain.cmake*.

0 commit comments

Comments
 (0)