cmake-conan icon indicating copy to clipboard operation
cmake-conan copied to clipboard

Contradiction in documentation around usage

Open AlphaCluster opened this issue 3 years ago • 1 comments
trafficstars

https://github.com/conan-io/cmake-conan/tree/release/0.18#creating-packages Under creating packages, you are told to use a conanfile.py but nowhere in this documentation is that used as a source for conan package requirements other than using the command conan_cmake_run which you are recommended to not use. What recommendations should we be following at this point?

AlphaCluster avatar Mar 31 '22 21:03 AlphaCluster

Hi @AlphaCluster, If you are creating a package you have to use a conanfile.py, if you are just consuming you could use conanfile.py or txt. conan.cmake is just a wrapper for Conan and the difference between those two files is documented in the main Conan documentation. Calling to conan_cmake_install is the same as doing a conan install and you should know what arguments you want to call there. Please, refer to the Conan docs, for more information. Thanks for the question!

czoido avatar Apr 01 '22 06:04 czoido