conan-io / conan

Conan - The open-source C and C++ package manager
https://conan.io
MIT License
7.96k stars 952 forks source link

toolchain_file CMakeToolchain paths for deps #16455

Closed memsharded closed 1 week ago

memsharded commented 3 weeks ago

Changelog: Feature: Inject paths in CMake for tools.cmake.cmakettolchain:toolchain_file definition Docs: https://github.com/conan-io/docs/pull/XXXX

Close 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 generated conan_toolchain.cmake file would be better.

memsharded commented 1 week ago

This is not very clear, closing it in favor of https://github.com/conan-io/conan/pull/16563