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)
39
39
# The public linking with pybind lead to have a link with libpython which
40
40
# propagates in the python module .so. On macOS, this extra link with libpython
41
41
# 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.
44
44
if (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 )
46
46
else ()
47
47
target_link_libraries (${PROJECT_NAME} PUBLIC pybind11::embed )
48
48
endif ()
You can’t perform that action at this time.
0 commit comments