Search code examples
c++gitbuildconan

How to reference package from Conan recipe on github


I have a C++ (Windows, MSVC) project and I'm using Conan to manage external dependencies. So far, I've been adding dependencies by including them under [requires] in my conanfile.txt. I'm relatively new to Conan.

Now I'm trying to reference the following package: https://github.com/firefalcom/bgfx-conan

This package is not available on any remotes as far as I can tell. What is the correct way to install, build, and add a Conan package recipe like this to my project?


Solution

  • Figured it out. You need to clone the repository locally, then run:

    conan create .

    To install the package. Then you can reference it in your conanfile.txt based on the package name and version specified in the conanfile.py. So for me, it is bgfx/7188.