-
Notifications
You must be signed in to change notification settings - Fork 452
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 installing via cmake #374
Conversation
microfix add gh workflow part for pkgconfig uncomment that should not be commented move some add_subdirectory to logically correct place
Ok, now, with new commit we have:
|
For what it's worth, I tested @Arniiiii 's branch, with these latest changes, and it worked for me. Looking forward to next release. |
@Arniiiii Thanks for changes, all looks good. Include via <magic_enum/magic_enum.hpp> it's logical and understandable. |
I'll still try to adjust the formatting to improve such moments Line 31 in a72a053
|
This change does make perfect sense (a subfolder rather than at the root if the include folder, and aligning the behaviour of an installed location with add_subdirectory) but please me mindful that changes like this disrupt users who were already using the library as they may need to change their source files. This very change was accidentally introduced, then reverted in #310 (comment) - and now it's being brought back again. Chiming in from Conan Center - we just package the version as is, so that's not a problem at all. But had to spend some additional time finding an authoritative answer as to how the header should be included. I would probably suggest making it very clear in the README what the #include should be, and perhaps add a comment to #310, since the behaviour of a cmake install changed twice. |
@jcar87 I agree, my bad. |
What was the problem?
https://bugs.gentoo.org/933479
On Gentoo, a multilib library was looking for magic_enum's CMake config files, but couldn't find, because they are in ABI-dependant folder.
magic_enum's CMake script installs CMakeConfig related stuff to
/usr/lib64
or/usr/lib
.But:
The pull request does following things:
/usr/share/magic_enum/cmake/...
and/usr/share/magic_enum/magic_enum.pc
..cmake-format
file. It's a file for usage ofcmake-format
program. The file specifies what style to use forCMakeLists.txt
and*.cmake
files. I haven't applied for all such files, since I've touched not all of them..gitignore