Use CMakeDeps and CMakeToolchain as Generators on Conan (#4335)

* deps(conan): use `CMakeDeps` as generator

* chore: add changelog entry

* deps(conan): add `CMakeToolchain` generator

* fix: use generated toolchain file

* docs: mention toolchain as well

* fix: spelling

* fix: formatting

* revert: use nmake

* docs: fix documentation
This commit is contained in:
nerix
2023-01-29 14:10:39 +01:00
committed by GitHub
parent 6a4f0befd4
commit b80d41c327
6 changed files with 22 additions and 35 deletions
+2 -2
View File
@@ -131,7 +131,7 @@ Open up your terminal with the Visual Studio environment variables, then enter t
1. `mkdir build`
2. `cd build`
3. `cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DUSE_CONAN=ON ..`
3. `cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="conan_toolchain.cmake" ..`
4. `nmake`
## Building on MSVC with AddressSanitizer
@@ -160,7 +160,7 @@ Now open the project in CLion. You will be greeted with the _Open Project Wizard
```
-DCMAKE_PREFIX_PATH=C:\Qt\5.15.2\msvc2019_64\lib\cmake\Qt5
-DUSE_CONAN=ON
-DCMAKE_TOOLCHAIN_FILE="conan_toolchain.cmake"
```
and the _Build Directory_ to `build`.