From 5df447f91234c607c02224f76e8d6a5d27a19351 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Thu, 18 Mar 2021 08:17:45 +0100 Subject: [PATCH] docs: usage updated --- docs/usage.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/usage.rst b/docs/usage.rst index 12019e76..53e61078 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -230,14 +230,15 @@ library release the following steps may be performed: mp-units/0.6.0 [generators] - cmake_find_package_multi + CMakeToolchain + CMakeDeps 2. Import **mp-units** and its dependencies definitions to your project's build procedure with ``find_package``: .. code-block:: cmake - find_package(mp-units) + find_package(mp-units CONFIG REQUIRED) 3. Link your CMake targets with **mp-units**: @@ -251,7 +252,7 @@ library release the following steps may be performed: Unfortunately, packages distributed via Conan-Center cannot force the minimum version of the C++ language used for your build process. This is why it is important to specify it in `Conan profile file `_ and with ``target_compile_features`` command - for each CMake target in your project. + for each CMake target directly linking with `mp-units::mp-units` in your project. 4. Download, build, and install Conan dependencies before running CMake configuration step: @@ -259,7 +260,7 @@ library release the following steps may be performed: mkdir build && cd build conan install .. -pr -s compiler.cppstd=20 -b=missing - cmake .. -DCMAKE_BUILD_TYPE=Release + cmake .. -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake cmake --build .