From 3d22fcdd2261d05831a9c2325dde1901282d7e9a Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Wed, 8 Aug 2018 00:19:28 -0500 Subject: [PATCH] Disable boost's automagical library rename feature for nowide, because we're building it. --- src/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7f6226804..4a2bb974c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -429,6 +429,10 @@ IF (WIN32) add_library(boost-nowide STATIC ${LIBDIR}/boost/nowide/iostream.cpp ) + if(MSVC) + # Tell boost pragmas to not rename nowide as we are building it + add_definitions(-DBOOST_NOWIDE_NO_LIB) + endif() target_link_libraries(slic3r boost-nowide) # MinGW apparently has some multiple definitions of UUID-related items