summaryrefslogtreecommitdiffhomepage
path: root/video-ps3eye
diff options
context:
space:
mode:
Diffstat (limited to 'video-ps3eye')
-rw-r--r--video-ps3eye/CMakeLists.txt10
1 files changed, 3 insertions, 7 deletions
diff --git a/video-ps3eye/CMakeLists.txt b/video-ps3eye/CMakeLists.txt
index 2fac5f9c..5adcf2b0 100644
--- a/video-ps3eye/CMakeLists.txt
+++ b/video-ps3eye/CMakeLists.txt
@@ -4,13 +4,9 @@ if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/ps3eye-driver/CMakeLists.txt")
add_subdirectory("ps3eye-driver")
if(NOT MSVC)
- if(PKG_CONFIG_FOUND)
- pkg_check_modules(libusb "libusb-1.0" QUIET)
- endif()
- if(libusb_FOUND)
- include_directories(SYSTEM ${libusb_INCLUDE_DIRS})
- link_libraries(${libusb_LIBRARIES})
- endif()
+ find_package(LibUSB REQUIRED)
+ include_directories(SYSTEM ${LibUSB_INCLUDE_DIRS})
+ link_libraries(${LibUSB_LIBRARIES} -pthread)
else()
set(SDK_LIBUSB CACHE PATH "")
if(SDK_LIBUSB)