{"repo":"conan-io/cmake-conan","free":true,"listed":false,"github":"https://github.com/conan-io/cmake-conan","clone":"git clone https://github.com/conan-io/cmake-conan.git","description":"CMake wrapper for conan C and C++ package manager","language":"Python","stars":928,"topics":["cmake","conan","cmake-wrapper","c","cpp","package-manager"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"cmake-conan CMake dependency provider for the Conan C and C++ package manager. ⚠️ Important: Conan 2 is the recommended production version for cmake-conan . ------------------------------------------ The cmake-conan integration in this develop2 branch for Conan 2 using CMake dependency providers, even if not released as 1.0 yet, is more stable, production-ready and recommended than the legacy cmake-conan for Conan 1. Please update to Conan 2 and the new cmake-conan integration in this develop2 branch. From the 0.19.0 release, the tagged releases in this repo are Conan 2.X compatible. Feel free to use these releases instead of the develop2 branch for stability, but recall that these versions are not considered stable, and things can break in future releases. Quickstart with Conan 2.0 Prerequisites: CMake 3.24 Conan 2.0.5 A CMake-based project that contains a conanfile.txt or conanfile.py to list the required dependencies. First, clone this repository in the develop2 branch. Example project This repository contains a CMakeLists.txt with an example project that depends on fmt . In your own project Ensure you have placed a conanfile.txt or conanfile.py at the root of your project, listing your requirements. You can see conanfile.txt for an example, or check the Conan documentation for conanfile : .txt docs, .py docs. When first invoking CMake to configure the project, pass -DCMAKE PROJECT TOP LEVEL INCLUDES=[path-to-cmake-conan]/conan provider.cmake . This will ensure that conan ","default_branch":null,"files":null,"tree":[],"storefront":"/r/conan-io","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/conan-io/cmake-conan/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}