Skip to content
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

fix generators_folder relative path to conanfile #9668

Merged
merged 19 commits into from Oct 5, 2021

Conversation

memsharded
Copy link
Member

Changelog: Bugfix: generator_folder was using the cwd instead of a relative folder to the conanfile, producing layout errors.
Docs: Omit

#tags: slow

@memsharded memsharded added this to the 1.41 milestone Sep 24, 2021
@memsharded memsharded marked this pull request as ready for review September 24, 2021 19:09
Copy link
Contributor

@lasote lasote left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, is this superseded by https://github.com/conan-io/conan/pull/9674/files ?
I would say this is breaking if not conditioned to the usage of the layout.

@memsharded memsharded marked this pull request as draft September 29, 2021 14:23
@memsharded memsharded marked this pull request as ready for review October 1, 2021 15:12
conanfile.folders.set_base_generators(dir_path)
conanfile.folders.set_base_build(dir_path)
conanfile.folders.set_base_source(dir_path)
# FIXME: this is bad, but conanfile.folders.package=xxx is broken atm, cant be used
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, explain.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean, I don't understand why/what is broken.

Copy link
Contributor

@lasote lasote left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should open an issue to fix folders.package or remove it if we really don't want it. But now, being hardcoded is useless.

@lasote lasote merged commit edc5462 into conan-io:develop Oct 5, 2021
@memsharded memsharded deleted the fix/generators_folder_relative branch October 5, 2021 07:18

pkg_folder = args_to_string([self._conanfile.package_folder.replace("\\", "/")])
build_folder = args_to_string([self._conanfile.build_folder])
arg_list = ["--install", build_folder, build_config, "--prefix", pkg_folder]
Copy link

@yowidin yowidin Oct 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The --install command line argument isn't available in earlier versions of the CMake, it was probably introduced only in CMake 3.15. Please consider changing the call back to a build call with the install target.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants