Skip to content

Commit

Permalink
Build libslic3r-arrange/wrapper as static
Browse files Browse the repository at this point in the history
Fix build on linux without SLIC3R_STATIC (these are for internal use
only).

- Avoids the need for installation (fixes
  prusa3d#13812)
- Fixes build without PIC (fixes
  prusa3d#13810,
  prusa3d#13694), which would
  still result in broken behavior (duplicate static initialization
  crashing on startup).
  • Loading branch information
wavexx committed Jan 3, 2025
1 parent 5c7888b commit a7c15a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/slic3r-arrange-wrapper/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project(slic3r-arrange-wrapper)
cmake_minimum_required(VERSION 3.13)

add_library(slic3r-arrange-wrapper
add_library(slic3r-arrange-wrapper STATIC
include/arrange-wrapper/Arrange.hpp
include/arrange-wrapper/ArrangeSettingsDb_AppCfg.hpp
include/arrange-wrapper/ArrangeSettingsView.hpp
Expand Down
2 changes: 1 addition & 1 deletion src/slic3r-arrange/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project(slic3r-arrange)
cmake_minimum_required(VERSION 3.13)

add_library(slic3r-arrange
add_library(slic3r-arrange STATIC
include/arrange/Beds.hpp
include/arrange/ArrangeItemTraits.hpp
include/arrange/PackingContext.hpp
Expand Down

0 comments on commit a7c15a3

Please sign in to comment.