From 74e8e55fbc43a4ac2d90f65a310143a56ac74571 Mon Sep 17 00:00:00 2001 From: tamasmeszaros Date: Wed, 6 May 2020 19:59:31 +0200 Subject: [PATCH] Hotfix for debug builds with new wxWidgets in deps --- src/slic3r/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/slic3r/CMakeLists.txt b/src/slic3r/CMakeLists.txt index b52201c38..49fd93821 100644 --- a/src/slic3r/CMakeLists.txt +++ b/src/slic3r/CMakeLists.txt @@ -216,6 +216,12 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux") target_link_libraries(libslic3r_gui ${DBUS_LIBRARIES}) endif() +if (SLIC3R_STATIC AND UNIX) + # FIXME: This was previously exported by wx-config but the wxWidgets + # cmake build forgets this and the build fails in debug mode (or on raspberry release) + target_compile_definitions(libslic3r_gui PUBLIC -DwxDEBUG_LEVEL=0) +endif() + if(APPLE) target_link_libraries(libslic3r_gui ${DISKARBITRATION_LIBRARY}) endif()