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 ()