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
+8 -2
View File
@@ -85,16 +85,22 @@ jobs:
if: startsWith(matrix.os, 'windows')
uses: ilammy/msvc-dev-cmd@v1.12.0
- name: Setup Conan (Windows)
if: startsWith(matrix.os, 'windows')
run: |
conan profile new --detect --force default
conan profile update conf.tools.cmake.cmaketoolchain:generator="NMake Makefiles" default
- name: Build (Windows)
if: startsWith(matrix.os, 'windows')
run: |
mkdir build
cd build
conan install .. -b missing
conan install .. -s build_type=Release -b missing -pr:b=default
cmake `
-G"NMake Makefiles" `
-DCMAKE_BUILD_TYPE=Release `
-DUSE_CONAN=ON `
-DCMAKE_TOOLCHAIN_FILE="conan_toolchain.cmake" `
-DCHATTERINO_LTO="$Env:C2_ENABLE_LTO" `
..
set cl=/MP