-
Notifications
You must be signed in to change notification settings - Fork 674
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
Improving/Updating the CMakeLists.txt #174
Comments
I'd be willing to revisit the CMake support, but I would like to avoid gigantic gestalt PRs that are all-or-nothing. Let's first decide on the minimum necessary quality-of-life improvements to keep the CMake support functional, and then we can decide about nice-to-haves. |
Ah I should've checked for open pull requests. It looks like #147 does do what might be the minimum for fixing general issues. Though I would prefer the target_compile_definitions(enet
PUBLIC ENET_DLL # Make ENET_DLL public so projects that include us get ENET_DLL
PRIVATE ENET_BUILDING_LIB # Make ENET_BUILDING_LIB private so that projects that include us don't get it
) It looks like they also export all symbols for Windows which I'm not sure is necessary, it looks like this is what ENET_BUILDING_LIB is for which I just noticed. This isn't in the CMakeLists either. Other than that, I guess install() rules and exporting configurations is more on the nice-to-have side. |
Hi, I am the maintainer of the rust bindings: https://github.com/ruabmbua/enet-sys/tree/master Currently there is an issue, where some cmake installs, particularly on windows have inconsistent output folder structures. This makes it hard to reliably lookup the built static library for linking. As already mentioned in this thread, a install() rule in the cmake file would be really nice. It would solve my problem, since cmake apparently has a predictable install folder structure, unlike the build folder structure. |
|
There's a partial fix for the IIRC |
Hi there.
My primary goal is to make the CMake build a little more vcpkg friendly, so the existing vcpkg port doesn't have to ship its own modified version after the next enet point release, whenever that is.
But the CMakeLists.txt does have a few general issues that if fixed would make it nicer to use/integrate with CMake based projects in general.
I'd be happy to do a pull request for that if that's okay. Here are the changes I would like to make:
If this is alright, I can go ahead and do a pull request, if there's no interest, this issue can be closed.
Thank you for your time.
The text was updated successfully, but these errors were encountered: