-
Notifications
You must be signed in to change notification settings - Fork 993
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
define source_folder in test_package when layout() #12075
define source_folder in test_package when layout() #12075
Conversation
@@ -83,6 +83,7 @@ def deps_install(app, ref_or_path, install_folder, base_folder, graph_info, remo | |||
conanfile.folders.set_base_install(install_folder) | |||
conanfile.folders.set_base_imports(install_folder) | |||
conanfile.folders.set_base_generators(base_folder) | |||
conanfile.folders.set_base_source(base_folder) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would also be assigned when no layout defined
. Is that ok?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so, some test_package
like the reported one has:
def generate(self):
env = Environment()
env.prepend_path("PKG_CONFIG_PATH", self.source_folder)
Will still want the self.source_folder
as argument whether the layout()
is defined or not. I was exactly trying to see if this could break something because of this.
cmake_layout(self) | ||
|
||
def generate(self): | ||
self.output.info("PKG_CONFIG_PATH {}!".format(os.path.exists(self.source_folder))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how is related the PKG_CONFIG_PATH with this change in the code base?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is just an example, the original reported issue wanted to set-up the PKG_CONFIG_PATH, but it could be any other message.
Changelog: Feature: Define
source_folder
in test_package whenlayout()
is defined.Docs: Omit
This is a test, to see if something would be broken
Close #12073