You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the documentation of the layout method (https://docs.conan.io/en/latest/reference/conanfile/methods.html#layout) mentions that the folders are relative to the local current folder when calling conan build, etc. I probably misunderstood that, but the local current folder seems to be the folder where the recipe file is located. I don't know if it is clear for everyone else, but I thought about the current working directory first.
I guess it is fine for quite all users to use the recipe folder. However, what happens, if the recipe is located in a subdirectory? Image the following directory structure:
Configuring a layout that is based on the my project folder instead of the recipe folder might require differentiation between local cache builds or not:
I wouldn't request to change the current behavior as it fits for 99% of the users. However, would it be an idea to introduce an additional folder like self.folders.base or self.folders.root that only applies for non-cache builds?
Is it too fancy or only have-baked to add something like this just for the remaining 1% of users (who might even have additional requirements for that topic)? My guess is yes, however I have still created that issue to discuss and document the decision.
Hi,
the documentation of the
layout
method (https://docs.conan.io/en/latest/reference/conanfile/methods.html#layout) mentions that the folders are relative to the local current folder when callingconan build
, etc. I probably misunderstood that, but the local current folder seems to be the folder where the recipe file is located. I don't know if it is clear for everyone else, but I thought about the current working directory first.I guess it is fine for quite all users to use the recipe folder. However, what happens, if the recipe is located in a subdirectory? Image the following directory structure:
Configuring a layout that is based on the
my project folder
instead of therecipe
folder might require differentiation between local cache builds or not:I wouldn't request to change the current behavior as it fits for 99% of the users. However, would it be an idea to introduce an additional folder like
self.folders.base
orself.folders.root
that only applies for non-cache builds?Is it too fancy or only have-baked to add something like this just for the remaining 1% of users (who might even have additional requirements for that topic)? My guess is yes, however I have still created that issue to discuss and document the decision.
Best regards,
Markus
The text was updated successfully, but these errors were encountered: