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
fix generators_folder relative path to conanfile #9668
Conversation
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.
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.
conans/test/functional/toolchains/cmake/test_v2_cmake_template.py
Outdated
Show resolved
Hide resolved
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 |
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.
Please, explain.
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 mean, I don't understand why/what is broken.
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 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.
|
||
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] |
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.
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.
Changelog: Bugfix:
generator_folder
was using thecwd
instead of a relative folder to the conanfile, producing layout errors.Docs: Omit
#tags: slow