From 450b990854e80320661e4914a5755483b0feba00 Mon Sep 17 00:00:00 2001 From: Evgeni Raikhel Date: Tue, 27 Nov 2018 14:09:08 +0200 Subject: [PATCH] Add missing build dependency for Python wrapper Change-Id: Ib93a329d3ea4bec252c006bd2e3f47ffaf646715 --- wrappers/python/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wrappers/python/CMakeLists.txt b/wrappers/python/CMakeLists.txt index ba82363f00..3005f8b6d9 100644 --- a/wrappers/python/CMakeLists.txt +++ b/wrappers/python/CMakeLists.txt @@ -60,6 +60,9 @@ else() # Some other windows version endif() pybind11_add_module(pybackend2 SHARED ${RAW_RS_CPP} ${RAW_RS_HPP}) +if(USE_EXTERNAL_USB) + add_dependencies(pybackend2 libusb) +endif() target_link_libraries(pybackend2 PRIVATE ${LIBUSB1_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) set_target_properties(pybackend2 PROPERTIES VERSION ${REALSENSE_VERSION_STRING}