Skip to content

Commit 3e4cac1

Browse files
authored
options patterns (#3720)
1 parent 92e81a3 commit 3e4cac1

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

reference/commands/graph/explain.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ In the same way, it can report when a package has a different option value and t
3636

3737
.. code-block:: text
3838
39-
$conan graph explain --requires=lib/1.0.0 -o shared=True --format=json
39+
$conan graph explain --requires=lib/1.0.0 -o lib/*:shared=True --format=json
4040
...
4141
{
4242
"closest_binaries": {

reference/config_files/profiles.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ They have this structure:
2020
os=Macos
2121
2222
[options]
23-
MyLib:shared=True
23+
mylib/*:shared=True
2424
2525
[tool_requires]
2626
tool1/0.1@user/channel
@@ -204,8 +204,8 @@ List of options available from your recipe and its dependencies:
204204
:caption: *myprofile*
205205
206206
[options]
207-
my_pkg_option=True
208-
shared=True
207+
mypkg/*:my_pkg_option=True
208+
*:shared=True
209209
210210
211211
.. _reference_config_files_profiles_tool_requires:

tutorial/consuming_packages/different_configurations.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,17 @@ using the ``--options`` argument. To do so, please run:
173173
174174
Doing this, Conan will install the *Zlib* shared libraries, generate the files to build with
175175
them and, also the necessary files to locate those dynamic libraries when running the
176-
application. Let's build the application again after configuring it to link *Zlib* as a
176+
application.
177+
178+
.. note::
179+
180+
Options are defined per-package. In this case we were defining that we wanted that specific
181+
version of zlib/1.2.11 as a shared library. If we had other dependencies and we want all of
182+
our dependencies (whenever possible) as shared libraries, we would use ``-o *:shared=True``,
183+
with the ``*`` pattern that matches all package references.
184+
185+
186+
Let's build the application again after configuring it to link *Zlib* as a
177187
shared library:
178188

179189
.. code-block:: bash

0 commit comments

Comments
 (0)