-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
[wxwidgets] Fix find_package error #13023
Conversation
Why should we copy a default cmake module inside vcpkg? |
If doesn't set this to make wxwidgets use default cmake module inside vcpkg, it will use the cmake module inside Visual Studio and it can not find wxwidgets. |
That is basically true for all modules using the wrong cmake version. vcpkg should just get over it and add a cmake modules folder which is basically a copy of cmake findModules which get improved over time and maybe commited into cmake itself (That is basically what VTK does).... but no we have |
Thanks for your review, it is my fault. I test again
I find port
I will add new |
If we're patching the default module somehow that's OK, but we should probably avoid deploying a module identical to that which ships with cmake (and request that users use a more recent version if we need that). |
I don't know. I kind of think @Neumann-A's suggestion isn't that bad of an idea. However, under the current status quo this seems like not a terrible thing to do. |
The reason we don't want to commit a copy of CMake's modules is because we don't want to downgrade the user's modules moving into the future. If they use today's vcpkg tool against CMake 3.20, we don't want to force them back down to CMake 3.17/18. |
If a module is updated it is very probably that a |
I spent some time looking at the built-in wxwidgets module and it seems too complex to realistically shim; in this case, I agree that a replacement is warranted and I've opened #13361 with that approach. |
Duplicated to #13361. |
Describe the pull request
Add vcpkg-cmake-wrapper.cmake to use FindwxWidgets.cmake to find wxwidgets.
No
Yes