The cmake_lib template of conan new command does generate not invalid CMake code, but redundant.
On test_package/CMakeLists.txt it generates find_package directives of every dependency passed as -d requires parameter and it should only generate the find_package of the main package, delegating the finding of transitive dependencies to the original package.
Describe the bug
Environment: everyone OS: everyone
The
cmake_lib
template ofconan new
command does generate not invalid CMake code, but redundant. Ontest_package/CMakeLists.txt
it generatesfind_package
directives of every dependency passed as-d requires
parameter and it should only generate thefind_package
of the main package, delegating the finding of transitive dependencies to the original package.How to reproduce it