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:
git clone https://github.com/playgithub/wxCharts.git
- 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.
Describe the bug
With VS2019 solution generated by cmake in debug mode, release version of wx is used
Environment
To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/playgithub/wxCharts.gitcmakeorcmake-guito generate a VS2019 solution (x64/debug/cpp17)triplet file
x64-windows-cpp17.cmakeExpected behavior
wxChartsuses debug version ofwxWidgetsAdditional 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
wxWidgetsin vcpkg, everything is ok.So it might be something in
CMakeLists.txtforwxChartsleads to the problem.