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
- OS: Windows
- Compiler: cl.exe 19.28.29910
To Reproduce
Steps to reproduce the behavior:
- ./vcpkg install wxwidgets:x64-windows-static
- Use wxWidgets in a statically linked debug project
- See error
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
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