From 5f145d02bd861a94d413be168ef5cf33b8331c02 Mon Sep 17 00:00:00 2001 From: Mark Roszko Date: Sat, 14 Jun 2025 15:06:57 -0400 Subject: [PATCH] Disable WX_USE_REL_AND_DBG under vcpkg as it doesnt really play nice with lib and debug/lib This is usually fixed by the hackjob in vcpkg for the wxwidgets find module being so...crazy --- cmake/FindwxWidgets.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/FindwxWidgets.cmake b/cmake/FindwxWidgets.cmake index e6ea429a04..c48caa5251 100644 --- a/cmake/FindwxWidgets.cmake +++ b/cmake/FindwxWidgets.cmake @@ -625,6 +625,10 @@ if(wxWidgets_FIND_STYLE STREQUAL "win32") set(WX_USE_REL_AND_DBG FALSE) endif() + if( VCPKG_TOOLCHAIN ) + set(WX_USE_REL_AND_DBG FALSE) + endif() + # Get configuration parameters from the name. WX_GET_NAME_COMPONENTS(${wxWidgets_CONFIGURATION} PF UNV UCD DBG)