Conan can be installed via pip, or any python package manager, such as miniforge3:
conda install conanMain documentation site: https://docs.conan.io/2/
Check conan center: https://conan.io/center
[settings]
arch=x86_64
build_type=RelWithDebInfo
compiler=gcc
compiler.cppstd=gnu20
compiler.libcxx=libstdc++11
compiler.version=12
os=Linux
[conf]
tools.cmake.cmaketoolchain:generator=Ninja
conan install . --output-folder=./build --build=missing --settings=build_type=RelWithDebInfo- Go to the conan cmake-wrapper github repo: https://github.com/conan-io/cmake-conan
- Use git submodule to include the cmake-wrapper inside your project:
git submodule add https://github.com/conan-io/cmake-conan.git cmake-conan- Run cmake:
cmake -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=cmake-conan/conan_provider.cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -GNinja -B=build .It seems that this command only succeeds when running inside the project root directory.