From f8bc3f5f7adabcc9d898029eafc133b909f28c1b Mon Sep 17 00:00:00 2001 From: tamasmeszaros Date: Tue, 30 Aug 2022 16:08:34 +0200 Subject: [PATCH] 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 --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 9d8a553644..50eccfc849 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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 ()