fix some building issues under linux

Change-Id: I787024a74e15ef3904dcffe233e4387bdfc139b3
This commit is contained in:
lane.wei 2022-09-08 15:36:03 +08:00 committed by Lane.Wei
parent 5f1138f022
commit 5b7cf54cf5
3 changed files with 23 additions and 7 deletions

View file

@ -454,10 +454,6 @@ set(OCCT_LIBS
TKernel
)
if(APPLE)
target_link_libraries(libslic3r freetype)
endif()
target_link_libraries(libslic3r
libnest2d
@ -480,6 +476,13 @@ target_link_libraries(libslic3r
${OCCT_LIBS}
)
if(NOT WIN32)
target_link_libraries(libslic3r freetype)
if (NOT APPLE)
target_link_libraries(libslic3r fontconfig)
endif()
endif()
if (TARGET OpenVDB::openvdb)
target_link_libraries(libslic3r OpenVDB::openvdb)
endif()