build: cmake_paths is now supported by Conan recipe

This commit is contained in:
Mateusz Pusz
2021-01-27 17:48:53 +01:00
parent f9b15ddcd5
commit 5eb9b047bf
4 changed files with 5 additions and 7 deletions
-1
View File
@@ -18,7 +18,6 @@
- fix: ambiguous case for empty type list resolved
- (!) build: The library should now be linked as `mp::units` in the CMake's `target_link_libraries()`
- (!) build: `BUILD_DOCS` CMake option renamed to `UNITS_BUILD_DOCS`
- (!) build: `-g cmake_paths` has to be manually provided for `conan install` command (workaround for a Conan bug)
- build: doxygen updated to 1.8.20
- build: catch2 updated to 2.13.4
- build: fmt updated to 7.1.3
+2 -3
View File
@@ -331,13 +331,12 @@ in **mp-units** repository, you should:
The above will download and install all of the dependencies needed for the development of the library,
build all of the source code and documentation, and run unit tests.
If you prefer to build the project via CMake rather then Conan, then you should add ``-g cmake_paths`` generator
to ``conan install`` and replace the last ``conan build ..`` step with the CMake build:
If you prefer to build the project via CMake rather then Conan, then you should replace the last ``conan build ..``
step with the CMake build:
.. code-block:: shell
# ...
conan install .. -g cmake_paths -pr <your_conan_profile> -s compiler.cppstd=20 -e mp-units:CONAN_RUN_TESTS=True -b outdated -u
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake
cmake --build . --config Release
ctest