Skip to content

[wxwidgets] With VS2019 solution generated by cmake in debug mode, release version of wx is used #18066

@playgithub

Description

@playgithub

Describe the bug
With VS2019 solution generated by cmake in debug mode, release version of wx is used

Environment

  • OS: Windows 10
  • Compiler: msvc

To Reproduce
Steps to reproduce the behavior:

  1. git clone https://github.com/playgithub/wxCharts.git
  2. use cmake or cmake-gui to generate a VS2019 solution (x64/debug/cpp17)

triplet file x64-windows-cpp17.cmake

set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE dynamic)
set(VCPKG_CXX_FLAGS "/std:c++17")
set(VCPKG_C_FLAGS "/std:c17")

Expected behavior
wxCharts uses debug version of wxWidgets

Additional context
You can see link dependencies of the project, it depends on the release version of wxWidgets.
When I build a native VS2019 project that depends on wxWidgets in vcpkg, everything is ok.
So it might be something in CMakeLists.txt for wxCharts leads to the problem.

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