conan-io / web

Conan website, including home and ConanCenter
MIT License
10 stars 10 forks source link

Output folder vs Layout in #92

Closed prince-chrismc closed 1 year ago

prince-chrismc commented 1 year ago

According to our docs the better way is to use layouts

https://docs.conan.io/2/tutorial/consuming_packages/the_flexibility_of_conanfile_py.html?highlight=layouts#use-the-layout-method

In the previous examples, every time we executed a conan install command, we had to use the –output-folder [...] There’s a neater way to decide where we want Conan to generate the files [...]. You can define this directly in the conanfile.py inside the layout() method and make it work for every platform without adding more changes.

I am curious why this is not the easy button copy paste here as it's supported in the conanfile.txt

image