Fix and merge PR #7809
This commit is contained in:
parent
0ffcfd8393
commit
cc788ebb64
@ -506,8 +506,11 @@ endif ()
|
|||||||
|
|
||||||
# Find the Cereal serialization library
|
# Find the Cereal serialization library
|
||||||
find_package(cereal REQUIRED)
|
find_package(cereal REQUIRED)
|
||||||
|
add_library(libcereal INTERFACE)
|
||||||
if (NOT TARGET cereal::cereal)
|
if (NOT TARGET cereal::cereal)
|
||||||
add_library(cereal::cereal ALIAS cereal)
|
target_link_libraries(libcereal INTERFACE cereal)
|
||||||
|
else()
|
||||||
|
target_link_libraries(libcereal INTERFACE cereal::cereal)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# l10n
|
# l10n
|
||||||
|
@ -126,7 +126,7 @@ if (NOT WIN32 AND NOT APPLE)
|
|||||||
set_target_properties(PrusaSlicer PROPERTIES OUTPUT_NAME "prusa-slicer")
|
set_target_properties(PrusaSlicer PROPERTIES OUTPUT_NAME "prusa-slicer")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
target_link_libraries(PrusaSlicer libslic3r cereal::cereal)
|
target_link_libraries(PrusaSlicer libslic3r libcereal)
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
# add_compile_options(-stdlib=libc++)
|
# add_compile_options(-stdlib=libc++)
|
||||||
# add_definitions(-DBOOST_THREAD_DONT_USE_CHRONO -DBOOST_NO_CXX11_RVALUE_REFERENCES -DBOOST_THREAD_USES_MOVE)
|
# add_definitions(-DBOOST_THREAD_DONT_USE_CHRONO -DBOOST_NO_CXX11_RVALUE_REFERENCES -DBOOST_THREAD_USES_MOVE)
|
||||||
|
@ -358,7 +358,7 @@ find_package(JPEG REQUIRED)
|
|||||||
target_link_libraries(libslic3r
|
target_link_libraries(libslic3r
|
||||||
libnest2d
|
libnest2d
|
||||||
admesh
|
admesh
|
||||||
cereal::cereal
|
libcereal
|
||||||
libigl
|
libigl
|
||||||
miniz
|
miniz
|
||||||
boost_libs
|
boost_libs
|
||||||
|
@ -270,7 +270,7 @@ endforeach()
|
|||||||
|
|
||||||
encoding_check(libslic3r_gui)
|
encoding_check(libslic3r_gui)
|
||||||
|
|
||||||
target_link_libraries(libslic3r_gui libslic3r avrdude cereal::cereal imgui GLEW::GLEW OpenGL::GL hidapi libcurl ${wxWidgets_LIBRARIES})
|
target_link_libraries(libslic3r_gui libslic3r avrdude libcereal imgui GLEW::GLEW OpenGL::GL hidapi libcurl ${wxWidgets_LIBRARIES})
|
||||||
|
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
target_link_libraries(libslic3r_gui Setupapi.lib)
|
target_link_libraries(libslic3r_gui Setupapi.lib)
|
||||||
|
Loading…
Reference in New Issue
Block a user