Fix target remapping for wx targets defined in cmake config script

Remapping is needed for relwithdebuginfo build type to use release version instead of debug
This commit is contained in:
tamasmeszaros 2022-08-30 16:08:34 +02:00
parent 55158b674c
commit f8bc3f5f7a

View file

@ -66,7 +66,7 @@ if (SLIC3R_GUI)
if (NOT wxWidgets_FOUND)
message(STATUS "Trying to find wxWidgets in CONFIG mode...")
find_package(wxWidgets 3.2 CONFIG REQUIRED COMPONENTS html adv gl core base)
slic3r_remap_configs("${wxWidgets_LIBRARIES}" RelWithDebInfo Release)
slic3r_remap_configs(wx::wxhtml wx::wxadv wx::wxgl wx::wxcore wx::wxbase RelWithDebInfo Release)
else ()
include(${wxWidgets_USE_FILE})
endif ()