Fix CMake compilation on OS X

This commit is contained in:
Alessandro Ranellucci 2016-06-22 17:19:04 +02:00
parent a3ad66824c
commit 9d1fb2e854
2 changed files with 2 additions and 3 deletions

View File

@ -11,7 +11,7 @@ set(CMAKE_CXX_FLAGS "-DM_PI=3.14159265358979323846 -D_GLIBCXX_USE_C99 -DHAS_BOOL
set(CMAKE_INCLUDE_CURRENT_DIR ON)
IF(CMAKE_HOST_APPLE)
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++ -framework IOKit -framework CoreFoundation")
set(CMAKE_EXE_LINKER_FLAGS "-framework IOKit -framework CoreFoundation")
ELSE(CMAKE_HOST_APPLE)
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++")
ENDIF(CMAKE_HOST_APPLE)
@ -89,7 +89,7 @@ include_directories(${Boost_INCLUDE_DIRS})
#find_package(wxWidgets)
#disable wx for the time being - we're not building any of the gui yet
IF(CMAKE_HOST_UNIX)
set(Boost_LIBRARIES bsystem bthread)
#set(Boost_LIBRARIES bsystem bthread)
ENDIF(CMAKE_HOST_UNIX)
IF(wxWidgets_FOUND)
MESSAGE("wx found!")

View File

@ -9,7 +9,6 @@ namespace Slic3r {
SVGExport::SVGExport(TriangleMesh &t, float layerheight, float firstlayerheight)
:t(&t), sliced(false)
{
heights={};
if(layerheight>0){
for(float f=firstlayerheight;f<=t.stl.stats.max.z;f+=layerheight){
heights.push_back(f);