Skip to content

[wxWidgets] static triplet only debug/release library mixup #16545

@brad-anderson

Description

@brad-anderson

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:

  1. ./vcpkg install wxwidgets:x64-windows-static
  2. Use wxWidgets in a statically linked debug project
  3. 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

Metadata

Metadata

Assignees

Labels

category:port-bugThe issue is with a library, which is something the port should already support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions