Fix for building with cereal>=1.3.1. This patch comes from Gentoo: portage/media-gfx/prusaslicer/files/prusaslicer-2.5.0_rc1-cereal-1.3.1.patch --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -127,7 +127,7 @@ set_target_properties(PrusaSlicer PROPERTIES OUTPUT_NAME "prusa-slicer") endif () -target_link_libraries(PrusaSlicer libslic3r cereal) +target_link_libraries(PrusaSlicer libslic3r libcereal) if (APPLE) # add_compile_options(-stdlib=libc++) --- a/src/slic3r/CMakeLists.txt +++ b/src/slic3r/CMakeLists.txt @@ -260,7 +260,7 @@ encoding_check(libslic3r_gui) -target_link_libraries(libslic3r_gui libslic3r avrdude 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) target_link_libraries(libslic3r_gui Setupapi.lib) --- a/src/libslic3r/CMakeLists.txt +++ b/src/libslic3r/CMakeLists.txt @@ -395,7 +395,7 @@ target_link_libraries(libslic3r libnest2d admesh - cereal + libcereal libigl miniz boost_libs --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -446,6 +446,12 @@ # Find the Cereal serialization library find_package(cereal REQUIRED) +add_library(libcereal INTERFACE) +if (NOT TARGET cereal::cereal) + target_link_libraries(libcereal INTERFACE cereal) +else() + target_link_libraries(libcereal INTERFACE cereal::cereal) +endif() # l10n set(L10N_DIR "${SLIC3R_RESOURCES_DIR}/localization") value='0258ddf18326e14d70e733273d8bbe6f42aac0e0'/>
path: root/guix.scm
AgeCommit message (Expand)Author
2022-07-12guix: Really export 'define-public'....This is a followup to 3858275962f1ac567b5dce2355035f9eddea0a05, which didn't have any effect. * guix.scm: Explicitly use (guix packages) so #:re-export-and-replace is effective. Ludovic Courtès
2021-09-14guix: Replace 'define-public'....This is a followup to 8531997d2a1e10d574a6e9ab70bc86ade6af4733. * guix.scm: Use #:re-export-and-replace for 'define-public'. Ludovic Courtès
2021-06-29(guix) no longer pulls in (guix ftp-client)....That choice was made in 2014 and never made much sense. * guix.scm (%public-modules): Remove 'ftp-client'. Ludovic Courtès