From 1238b40f143609be19fabb344a7c421c7827c7ba Mon Sep 17 00:00:00 2001 From: tamasmeszaros Date: Thu, 7 May 2020 09:42:48 +0200 Subject: [PATCH] Link errors in debug build affect windows as well --- src/slic3r/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/CMakeLists.txt b/src/slic3r/CMakeLists.txt index 49fd93821..ac6961990 100644 --- a/src/slic3r/CMakeLists.txt +++ b/src/slic3r/CMakeLists.txt @@ -216,7 +216,7 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux") target_link_libraries(libslic3r_gui ${DBUS_LIBRARIES}) endif() -if (SLIC3R_STATIC AND UNIX) +if (SLIC3R_STATIC) # 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)