File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,10 @@ target_link_libraries(${PROJECT_NAME} PUBLIC Sofa.Simulation.Graph)
3939# The public linking with pybind lead to have a link with libpython which
4040# propagates in the python module .so. On macOS, this extra link with libpython
4141# lead to segv when importing the python module in versions of python that don't
42- # have a dynamic link with libpython (such as the one provided by conda), but works
43- # fine with versions that have such link.
42+ # have a dynamic link with libpython (such as the one provided by conda which is linked
43+ # statically), but works fine with versions that have such link.
4444if (CMAKE_SYSTEM_NAME STREQUAL Darwin)
45- target_link_libraries (${PROJECT_NAME} PRIVATE pybind11::embed )
45+ target_link_libraries (${PROJECT_NAME} PRIVATE pybind11::pybind11 pybind11::python_link_helper )
4646else ()
4747 target_link_libraries (${PROJECT_NAME} PUBLIC pybind11::embed)
4848endif ()
You can’t perform that action at this time.
0 commit comments