Skip to content

Commit

Permalink
seems to resolve #15, using solution from facebookarchive/caffe2#1514
Browse files Browse the repository at this point in the history
  • Loading branch information
Dejan Jovanovic committed Sep 26, 2019
1 parent bf1e91c commit 4d69fc7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ include_directories(${PYTHON_INCLUDE_PATH})

add_library(polypy MODULE ${polypy_SOURCES})
set_target_properties(polypy PROPERTIES PREFIX "")
if (APPLE)
set_target_properties(polypy PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
endif()
target_link_libraries(polypy poly)
target_link_libraries(polypy ${PYTHON_LIBRARIES})

string (REPLACE ";" "', '" polypy_SOURCES_STR "${polypy_SOURCES}")
configure_file(setup.py.in ${CMAKE_CURRENT_SOURCE_DIR}/setup.py)

0 comments on commit 4d69fc7

Please sign in to comment.