-
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] static triplet only debug/release library mixup #16545
Comments
Confirmed. |
Seems like |
Some context, FindwxWidgets.cmake had never worked with vcpkg and only recently was made to work (see #4756). That change made it finally work but for reasons I haven't quite teased out it fails for the static triplets. I'd love to get some proper CMake targets for wxWidgets but FindwxWidgets.cmake is >1k lines so I think most people, like myself, haven't found the time/courage to tackle it. |
Will be fixed in #16546. |
I don't believe this is fixed. Unfortunately I'm dealing with the cairo port getting all messed up recently so I haven't been able to give HEAD a proper test yet but there is nothing in the commit for #16546 that would have addressed this issue. |
@brad-anderson Please ping me if this issue is still exist. |
@JackBoosY I've confirmed this is still an issue. |
Will be fixed by #17111. |
Unfortunately, #17111 hasn't been merged yet, so the issue still exists. Trying to understand I think the main issue is with the folder structure of the wxWidgets VCPKG package not being compatible with CMake's expected structure, which might also be the structure from wxWidgets' distributed binaries. Just noticed, that this isn't just an issue with the static libraries. For the dynamic ones, CMake still picks the release version. You should be able to observe this at configuration time, when CMake logs:
It's just that you'll notice sooner with the static variants, because the Linker will error out. With the dynamic libs I got unexpected crashes due to error code |
Describe the bug
When using wxWidgets supplied by vcpkg through CMake in a statically linked debug configuration project, the linker gets supplied with the release versions of the wxwidgets libraries instead of the debug versions.
Environment
To Reproduce
Steps to reproduce the behavior:
I've attached a basic CMakeLists.txt and the wxWidget's reference hello world to reproduce. I'm using VS 2019 CMake support and specifying my CMake toolchain and vcpkg triplet in my CMakeSettings.json.
Expected behavior
Debug libraries should be provided. This works correctly on x64-windows.
Failure logs
wxwidgets-static-debrel-mixup.txt
Additional context
Getting to this point relies on a PR I made to fix an earlier issue with linking libpng: #16544
The text was updated successfully, but these errors were encountered: