Skip to content

Commit 0a1b375

Browse files
authored
Sync cmake and zlib version with examples code (#4303)
1 parent c0ea14f commit 0a1b375

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

tutorial/consuming_packages/use_tools_as_conan_packages.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The structure of the project is the same as the one of the previous example:
3333
3434
The main difference is the addition of the :ref:`reference_config_files_profiles_tool_requires` section in the
3535
**conanfile.txt** file. In this section, we declare that we want to build our application
36-
using CMake **v3.22.6**.
36+
using CMake **v3.27.9**.
3737

3838
.. code-block:: ini
3939
:caption: **conanfile.txt**
@@ -80,7 +80,7 @@ We also added a message to the *CMakeLists.txt* to output the CMake version:
8080
target_link_libraries(${PROJECT_NAME} ZLIB::ZLIB)
8181
8282
Now, as in the previous example, we will use Conan to install **Zlib** and **CMake
83-
3.22.6** and generate the files to find both of them. We will generate those
83+
3.27.9** and generate the files to find both of them. We will generate those
8484
files in the folder *build*. To do that, just run:
8585

8686
.. code-block:: bash
@@ -143,7 +143,7 @@ Now, if you check the folder you will see that Conan generated a new
143143
file called ``conanbuild.sh/bat``. This is the result of automatically invoking a
144144
``VirtualBuildEnv`` generator when we declared the ``tool_requires`` in the
145145
**conanfile.txt**. This file sets some environment variables like a new ``PATH`` that
146-
we can use to inject the location of CMake v3.22.6 into our environment.
146+
we can use to inject the location of CMake v3.27.9 into our environment.
147147

148148
Activate the virtual environment, and run ``cmake --version`` to check that you
149149
have installed the new CMake version in the path.
@@ -168,12 +168,12 @@ Run ``cmake`` and check the version:
168168
.. code-block:: bash
169169
170170
$ cmake --version
171-
cmake version 3.22.6
171+
cmake version 3.27.9
172172
...
173173
174-
As you can see, after activating the environment, the CMake v3.22.6 binary folder was
174+
As you can see, after activating the environment, the CMake v3.27.9 binary folder was
175175
added to the path and is the currently active version now. Now you can build your project as
176-
you previously did, but this time Conan will use CMake 3.22.6 to build it:
176+
you previously did, but this time Conan will use CMake 3.27.9 to build it:
177177

178178
.. code-block:: bash
179179
:caption: Windows
@@ -182,27 +182,27 @@ you previously did, but this time Conan will use CMake 3.22.6 to build it:
182182
$ cmake .. -G "Visual Studio 15 2017" -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake
183183
$ cmake --build . --config Release
184184
...
185-
Building with CMake version: 3.22.6
185+
Building with CMake version: 3.27.9
186186
...
187187
[100%] Built target compressor
188188
$ Release\compressor.exe
189189
Uncompressed size is: 233
190190
Compressed size is: 147
191-
ZLIB VERSION: 1.2.11
191+
ZLIB VERSION: 1.3.1
192192
193193
.. code-block:: bash
194194
:caption: Linux, macOS
195195
196196
$ cmake .. -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release
197197
$ cmake --build .
198198
...
199-
Building with CMake version: 3.22.6
199+
Building with CMake version: 3.27.9
200200
...
201201
[100%] Built target compressor
202202
$ ./compressor
203203
Uncompressed size is: 233
204204
Compressed size is: 147
205-
ZLIB VERSION: 1.2.11
205+
ZLIB VERSION: 1.3.1
206206
207207
208208
Note that when we activated the environment, a new file named

0 commit comments

Comments
 (0)