I am not convinced of this approach, it seems it won't scale, there might be more and more things necessary. I think that going with the tools.cmake.cmaketoolchain:user_toolchain approach with maybe more control over the generated conan_toolchain.cmake file would be better.
Changelog: Feature: Inject paths in CMake for
tools.cmake.cmakettolchain:toolchain_file
definition Docs: https://github.com/conan-io/docs/pull/XXXXClose https://github.com/conan-io/conan/issues/16376
I am not convinced of this approach, it seems it won't scale, there might be more and more things necessary. I think that going with the
tools.cmake.cmaketoolchain:user_toolchain
approach with maybe more control over the generatedconan_toolchain.cmake
file would be better.