Skip to content

Commit

Permalink
compile simdutf with fPIC in our python bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilDohne committed Jul 11, 2024
1 parent ad9abbc commit 58f8491
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
# --------------------------------------------------------------------------
project(PhotoshopAPIPython)

file(GLOB_RECURSE MY_SOURCES CONFIGURE_DEPENDS "src/*.cpp")
file(GLOB_RE
CURSE MY_SOURCES CONFIGURE_DEPENDS "src/*.cpp")

# Compile simdutf with position independent code as it otherwise wont compile on gcc ubuntu
set_property(TARGET simdutf PROPERTY POSITION_INDEPENDENT_CODE ON)

pybind11_add_module(psapi src/main.cpp)
target_link_libraries(psapi PUBLIC PhotoshopAPI)

0 comments on commit 58f8491

Please sign in to comment.