Skip to content

Commit 19d3ace

Browse files
add note about languages = "C" since v2.4 (#4005)
1 parent e33a0f3 commit 19d3ace

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tutorial/creating_packages/configure_options_settings.rst

+6-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ C libraries
243243

244244
There are other typical cases where you want to delete certain settings. Imagine that you
245245
are packaging a C library. When you build this library, there are settings like the
246-
compiler C++ standard (``settings.compiler.cppstd``) or the standard library used
246+
compiler C++ standard (``self.settings.compiler.cppstd``) or the standard library used
247247
(``self.settings.compiler.libcxx``) that won't affect the resulting binary at all. Then it
248248
does not make sense that they affect to the package ID computation, so a typical pattern is
249249
to delete them in the ``configure()`` method:
@@ -258,6 +258,11 @@ Please, note that deleting these settings in the ``configure()`` method will mod
258258
package ID calculation but will also affect how the toolchain, and the build system
259259
integrations work because the C++ settings do not exist.
260260

261+
.. note::
262+
263+
From Conan 2.4, the above ``configure()`` is not necessary if defined ``languages = "C"`` recipe
264+
attribute (experimental).
265+
261266
Header-only libraries
262267
^^^^^^^^^^^^^^^^^^^^^
263268

0 commit comments

Comments
 (0)