Skip to content

Commit

Permalink
Try and apply fPIC to python lib compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
royfalk committed Oct 16, 2024
1 parent 00e873a commit ebacccb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions engine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1139,6 +1139,10 @@ ADD_LIBRARY(vegastrike_python SHARED
${LIBPYTHON}
)

TARGET_COMPILE_OPTIONS(
vegastrike_python PRIVATE -fPIC
)

TARGET_LINK_LIBRARIES(
vegastrike_python
${Boost_LIBRARIES}
Expand Down

0 comments on commit ebacccb

Please sign in to comment.