conan-io / cmake-conan

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

Fix for CMakeDeps generator being duplicated when using a conanfile.py #584

Closed juansblanco closed 10 months ago

juansblanco commented 11 months ago

Fix for https://github.com/conan-io/cmake-conan/issues/540

juansblanco commented 11 months ago

I added warnings for both conanfile.txt and conanfile.py. I'm not sure if it's mandatory in conanfile.py or if it can work without having one. It could be changed to error instead of warning if needed. Also there can be the case where it finds the word in a comment without it being declared.