From 432577cf9d980ec81b60f2671ebfad02356b925a Mon Sep 17 00:00:00 2001 From: tamasmeszaros Date: Wed, 24 Aug 2022 13:45:57 +0200 Subject: [PATCH] Fixing relwithdebug for now --- CMakeLists.txt | 1 + deps/OCCT/OCCT.cmake | 7 ++++--- src/CMakeLists.txt | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9e1aef5e1..e43fdc6dc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -380,6 +380,7 @@ function(slic3r_remap_configs targets from_Cfg to_Cfg) foreach(tgt ${targets}) if(TARGET ${tgt}) + message(STATUS "remapping target ${tgt}") set_target_properties(${tgt} PROPERTIES MAP_IMPORTED_CONFIG_${from_CFG} ${to_Cfg}) endif() endforeach() diff --git a/deps/OCCT/OCCT.cmake b/deps/OCCT/OCCT.cmake index 7b8a57a56..fb7891caa 100644 --- a/deps/OCCT/OCCT.cmake +++ b/deps/OCCT/OCCT.cmake @@ -21,6 +21,7 @@ prusaslicer_add_cmake_project(OCCT -DBUILD_MODULE_Visualization=OFF ) -if (MSVC) - add_debug_dep(dep_OCCT) -endif () +# TODO: debug mode does not compile +# if (MSVC) +# add_debug_dep(dep_OCCT) +# endif () diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 131a69b5a..1c12a17f2 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -67,6 +67,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) else () include(${wxWidgets_USE_FILE}) endif ()