mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-04 00:21:36 +08:00
17 lines
511 B
Diff
17 lines
511 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index b5c812c..7fb66f7 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -24,7 +24,10 @@ if(${CMAKE_BUILD_TYPE} STREQUAL Debug)
|
|
endif(${CMAKE_BUILD_TYPE} STREQUAL Debug)
|
|
|
|
# find libusb
|
|
-find_package ( USB1 REQUIRED )
|
|
+find_package(PkgConfig REQUIRED)
|
|
+pkg_check_modules(LIBUSB REQUIRED libusb-1.0)
|
|
+set(LIBUSB_INCLUDE_DIR "${LIBUSB_INCLUDE_DIRS}")
|
|
+set(LIBUSB_LIBRARIES "${LIBUSB_LINK_LIBRARIES}")
|
|
include_directories ( ${LIBUSB_INCLUDE_DIR} )
|
|
|
|
# Find Boost
|