Skip to content

Commit afc49bd

Browse files
committed
update to Conan 2
1 parent 60f5fa6 commit afc49bd

File tree

11 files changed

+27
-27
lines changed

11 files changed

+27
-27
lines changed

_static/conan-docs-logo-2.png

21.5 KB
Loading

_static/conan-docs-logo-2.svg

Lines changed: 1 addition & 1 deletion
Loading

changelog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Changelog
22
=========
33

4-
For a more detailed description of the major changes that Conan 2.0 brings, compared with Conan 1.X, please read :ref:`whatsnew`
4+
For a more detailed description of the major changes that Conan 2 brings, compared with Conan 1.X, please read :ref:`whatsnew`
55

66
2.1.0 (15-Feb-2024)
77
-------------------

index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Conan 2.0 - C and C++ Package Manager Documentation
2-
===================================================
1+
Conan 2 - C and C++ Package Manager Documentation
2+
=================================================
33

44
Welcome! This is the user documentation for Conan, an open source, decentralized C/C++ package manager that works in all platforms and with all build systems and compilers. Other relevant resources:
55

installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ There are different ways to install Conan:
1515
Install with pip (recommended)
1616
------------------------------
1717

18-
To install latest Conan 2.0 pre-release version using ``pip``, you need a Python >= 3.6
18+
To install latest Conan 2 version using ``pip``, you need a Python >= 3.6
1919
distribution installed on your machine. Modern Python distros come with pip pre-installed.
2020
However, if necessary you can install pip by following the instructions in `pip docs`_.
2121

integrations/clion.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Several options are marked as default. Let's review them:
6464

6565
- There's also a checkbox allowing Conan to modify the default CLion settings and run
6666
CMake sequentially instead of in parallel. This is necessary because the Conan cache
67-
isn't concurrent yet in Conan 2.0.
67+
isn't concurrent yet in Conan 2.
6868

6969
If you're using the Conan plugin, you typically wouldn't uncheck these options. After
7070
setting your preferences, click the OK button to finalize the configuration.

reference/conanfile/attributes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,12 @@ alias
203203

204204
.. warning::
205205

206-
While aliases can technically still be used in Conan 2.0, their usage is not recommended
206+
While aliases can technically still be used in Conan 2, their usage is not recommended
207207
and they may be fully removed in future releases. Users are encouraged to adapt to the
208208
:ref:`newer versioning features<devops_versioning>` for a more standardized and efficient
209209
package management experience.
210210

211-
In Conan 2.0, the `alias` attribute remains a part of the recipe, allowing users to define
211+
In Conan 2, the `alias` attribute remains a part of the recipe, allowing users to define
212212
an alias for a package version. Normally, you would create one using the ``conan new``
213213
command with the ``alias`` template and the exporting the recipe with conan export:
214214

reference/conanfile/attributes/requirements.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ conanfile.py method to learn a more flexible way to add them.
9595
build_requires
9696
--------------
9797
98-
`build_requires` are used in Conan 2.0 to provide compatibility with the Conan 1.X syntax,
98+
`build_requires` are used in Conan 2 to provide compatibility with the Conan 1.X syntax,
9999
but their use is discouraged in Conan 2 and will be deprecated in future 2.X releases.
100100
Please use `tool_requires` instead of `build_requires` in your Conan 2 recipes.
101101

reference/tools/cmake/cmakedeps.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Generated files
7070
- **Other necessary *.cmake**: files like version, flags and directory data or configuration.
7171

7272

73-
Note that it will also generate a **conandeps_legacy.cmake** file. This is a file that provides a behavior similar to the Conan 1 ``cmake`` generator, allowing to include this file with ``include(${CMAKE_BINARY_DIR}/generators/conandeps_legacy.cmake)``, and providing a single CMake ``CONANDEPS_LEGACY`` variable that allows to link with all the direct and transitive dependencies without explicitly enumerating them like: ``target_link_libraries(app ${CONANDEPS_LEGACY})``. This is a convenience provided for Conan 1.X users to upgrade to Conan 2.0 without changing their overall developer flow, but it is not recommended otherwise, and using the CMake canonical flow of explicitly using ``find_package()`` and ``target_link_libraries(... pkg1::pkg1 pkg2::pkg2)`` with targets is the correct approach.
73+
Note that it will also generate a **conandeps_legacy.cmake** file. This is a file that provides a behavior similar to the Conan 1 ``cmake`` generator, allowing to include this file with ``include(${CMAKE_BINARY_DIR}/generators/conandeps_legacy.cmake)``, and providing a single CMake ``CONANDEPS_LEGACY`` variable that allows to link with all the direct and transitive dependencies without explicitly enumerating them like: ``target_link_libraries(app ${CONANDEPS_LEGACY})``. This is a convenience provided for Conan 1.X users to upgrade to Conan 2 without changing their overall developer flow, but it is not recommended otherwise, and using the CMake canonical flow of explicitly using ``find_package()`` and ``target_link_libraries(... pkg1::pkg1 pkg2::pkg2)`` with targets is the correct approach.
7474

7575

7676
Customization

reference/tools/files/packaging.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ conan.tools.files AutoPackager
55

66
.. warning::
77

8-
This feature is **deprecated**, and will be removed in future Conan 2.0.X version.
8+
This feature is **deprecated**, and will be removed in future Conan 2.X version.
99
It was used to automatically deduce what to ``copy()`` in the ``package()`` method.
1010

1111
The recommended approach is to use explicit ``copy()`` calls in the ``package()`` method, as explained

0 commit comments

Comments
 (0)