Skip to content

Commit

Permalink
PR #12330 from Eran: fix pybackend missing udev watcher
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel authored Oct 31, 2023
2 parents a6b48b9 + 0bd2f9b commit 39f97f5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions wrappers/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,18 @@ if(APPLE)
endif()
endif()

if(${BACKEND} STREQUAL RS2_USE_V4L2_BACKEND)
if(UDEV_FOUND)
target_sources( pybackend2
PRIVATE
../../src/linux/udev-device-watcher.cpp
../../src/linux/udev-device-watcher.h
)
target_link_libraries( pybackend2 PRIVATE udev )
target_compile_definitions( pybackend2 PRIVATE -DUSING_UDEV )
endif()
endif()

install(TARGETS pybackend2 pyrealsense2
EXPORT pyrealsense2Targets
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
Expand Down

0 comments on commit 39f97f5

Please sign in to comment.