Skip to content

Commit 476dec9

Browse files
committed
python: add Python library to link command
This fixes link errors on Mac OS X. Signed-off-by: Robert Xiao <[email protected]>
1 parent 7a1bc22 commit 476dec9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wrappers/python/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ set_target_properties(cython_freenect PROPERTIES
2828
PREFIX ""
2929
OUTPUT_NAME "freenect"
3030
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
31-
target_link_libraries(cython_freenect freenect_sync)
31+
target_link_libraries(cython_freenect freenect_sync ${PYTHON_LIBRARIES})
3232
include_directories(${PYTHON_INCLUDE_PATH} ../c_sync/ ${NUMPY_INCLUDE_PATH})
3333

3434
# Install the extension

0 commit comments

Comments
 (0)