conan-io / cmake-conan

CMake wrapper for conan C and C++ package manager
MIT License
828 stars 252 forks source link

[Question] Can this scipt be used to create conan packages? #387

Open maidamai0 opened 2 years ago

maidamai0 commented 2 years ago

The example in README.md shows how to consume packages, can it be used to create packages? If yes, what is the best practice?

czoido commented 2 years ago

Hi @maidamai0, There's a section in the README that shows how to use the CONAN_EXPORTED variable to know if Conan is creating the package in the local cache and then avoiding importing conan.cmake in that case. Hope this helps