conan-io / cmake-conan

CMake wrapper for conan C and C++ package manager
MIT License
821 stars 250 forks source link

Contradiction in documentation around usage #406

Open AlphaCluster opened 2 years ago

AlphaCluster commented 2 years ago

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?

czoido commented 2 years ago

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!