Skip to content

Commit

Permalink
cmake: Turn on position independent code for all targets
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptomilk committed Dec 20, 2024
1 parent 5c7888b commit a48acef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
cmake_minimum_required(VERSION 3.13)
project(PrusaSlicer-native)

# This enables -fPIC for shared libaries and -fpie for binaries
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

add_subdirectory(clipper)
find_package(Qhull 7.2 REQUIRED)
add_library(qhull INTERFACE)
Expand Down

0 comments on commit a48acef

Please sign in to comment.