You either use a hash ofthe contents of the recipe (by default) as the recipe revision, or the commit for the SCM detected: git or SVN. The new feature coming with this release is the ability to chose therevision mode for each recipe. The revisions feature is one of the key steps towards reproducibility, this means that the revisions are computed as a unique ID known asthe “recipe revision” and “package revision”. Take a look at the revisions section in the documentation to read more about it. If you cannot identify the variables in the conanbuildinfo.cmake that belongs to your missing dependency, it might be that you are missing a requires = 'pkg/version.' Check the generated conanbuildinfo.cmake file, it will contain variables like CONANINCLUDEDIRS pointing to folders in the Conan cache, that should contain the expected headers. However, when I now try to package up my project by running, from the source directory, conan create., I. I have been trying to use conancmakerun in my CMakeLists.txt files to allow conan to be run in the cmake configure step, such that I can build a project or subproject with (from the source directory) cd build & cmake -DCMAKEBUILDTYPE=Debug. That is something implemented now as part of the Conan model, which means that the latest revisionthat exists in a remote is the one that is automatically installed (unless otherwise stated). Chose the revision mode for your recipesĬoming in the previous 1.14 release, we introduced revisions as the way to implicitly version the changes done in a recipe withoutbumping the actual reference version. Please try it and give feedback or contribute.
#CMAKE INSTALL PKG CONFIG INSTALL#
How to launch conan install from cmake It is possible to launch conan install from cmake, which can be convenient for end users, package consumers, that are not creating packages themselves.
#CMAKE INSTALL PKG CONFIG UPDATE#
Basically, just cd into your build dir and call something like conan install -s buildtype=Debug -s buildtype=x86 whenever you want to update dependencies. Now conan plays really nice with “single configuration generators” like the new CMake/Ninja support in VS2017 and onward. There are two ways to invoke your cmake tools: Using the helper attributes mandline and cmake.buildconfig. The CMake class helps us to invoke cmake command with the generator, flags and definitions, reflecting the specified Conan settings. Lots of fixes and minor improvements landed in the last 1.14 Conan release.