-
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 #4756 #13361
[wxwidgets] Fix #4756 #13361
Conversation
This seems like a very awkward hack with removing WXUSINGDLL and replacing it with #if 1 or 0......... You are supposed to define WXUSINGDLL in your application. Your code would never compile outside VCPKG and this encourages people to make that (minor) error. Edit: We at the KiCad project have our own corrected copy of FindWxwidgets that fixes compatibility with vcpkg and have no need to violate the source of wxwidgets. |
@marekr I'm really happy you've been able to work around these issues with a custom file! However, in upstream vcpkg,
Because vcpkg always deploys exactly one version of wxwidgets (either DLL or static) we can statically encode the linkage in the package, which removes a source of error on the consumption side. If the user correctly set the macro in their project, there will be no observable difference in the build. This is a technique we apply broadly across vcpkg for libraries to handle ABI-affecting macros. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
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 control
file for wxchartdir
has been delated. vcpkg.json
seems missing in this PR.
The failure on osx:
|
3a61fa8
to
2d5b389
Compare
3b628e8
to
a4081f5
Compare
a4081f5
to
e54dbf5
Compare
…roschuma/wxwidgets
0758df3
to
0df49a3
Compare
0df49a3
to
0b03af1
Compare
Alternative approach compared to #13023
Fixes wxwidgets installed but not detected by FindwxWidgets.cmake #4756
I'm able to successfully compile https://docs.wxwidgets.org/trunk/overview_helloworld.html with the following CMakeLists.txt:
The source also required modification to add
wxIMPLEMENT_WXWIN_MAIN_CONSOLE
since our built copy of wxwidgets targets GUIs.