-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
(#24893) magic_enum/0.9.6: fixes install dir #24894
(#24893) magic_enum/0.9.6: fixes install dir #24894
Conversation
This comment has been minimized.
This comment has been minimized.
bc3410e
to
eed8c8f
Compare
This comment has been minimized.
This comment has been minimized.
recipes/magic_enum/all/conanfile.py
Outdated
@@ -60,7 +60,7 @@ def build(self): | |||
pass | |||
|
|||
def package(self): | |||
copy(self, "*", src=os.path.join(self.source_folder, "include"), dst=os.path.join(self.package_folder, "include")) | |||
copy(self, "*", src=os.path.join(self.source_folder, "include/magic_enum"), dst=os.path.join(self.package_folder, "include")) |
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.
copy(self, "*", src=os.path.join(self.source_folder, "include/magic_enum"), dst=os.path.join(self.package_folder, "include")) | |
if Version(self.version) < "0.9.4": | |
src_folder = os.path.join(self.source_folder, "include") | |
else: | |
src_folder = os.path.join(self.source_folder, "include", "magic_enum") | |
copy(self, "*", src=src_folder, dst=os.path.join(self.package_folder, "include")) |
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.
@SpaceIm Thanks for the feedback regarding support of all package versions of magic_enum
.
In order to achieve that I've changed the package()
method to use the CMake install target.
eed8c8f
to
48b5714
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Given that this was already out in the wild, I would probably err on the side of caution and at least for the published versions that had |
@jcar87 according to your suggestion in #24894 (comment) I've added a copy of the includes in the legacy directory for package versions from 0.9.4 to 0.9.6 in ecdbfa0. |
Conan v1 pipeline ✔️All green in build 6 (
Conan v2 pipeline ✔️
All green in build 6 (
|
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.
Thanks!
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.
LGTM
* (conan-io#24893) magic_enum/0.9.6: fixes install dir * (conan-io#24893) magic_enum/0.9.6: create package using CMake install target * (conan-io#24893) magic_enum/0.9.6: set src_dir layout method * (conan-io#24893) magic_enum/0.9.6: add legacy include directory
Summary
Changes to recipe: magic_enum/0.9.6
Motivation
This MR is intended to fix #24893
Details
This MR is intended to fix #24893