summaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-03-28 23:41:01 -0700
committerJosh Blum <josh@joshknows.com>2011-03-28 23:41:01 -0700
commit2d1bd00bf04274358aed15b5652e67187424a424 (patch)
tree7f425668768a0705603c4c74b4a4341e467ec322 /host
parent1ff8aaeaab91919e0c67c85ba6bb74fba96eefe8 (diff)
downloaduhd-2d1bd00bf04274358aed15b5652e67187424a424.tar.gz
uhd-2d1bd00bf04274358aed15b5652e67187424a424.tar.bz2
uhd-2d1bd00bf04274358aed15b5652e67187424a424.zip
usb: changes to allow for static linking of libusb on windows
Diffstat (limited to 'host')
-rw-r--r--host/lib/transport/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/host/lib/transport/CMakeLists.txt b/host/lib/transport/CMakeLists.txt
index a5bf9c5f1..656ca9987 100644
--- a/host/lib/transport/CMakeLists.txt
+++ b/host/lib/transport/CMakeLists.txt
@@ -31,6 +31,10 @@ IF(ENABLE_USB)
MESSAGE(STATUS "USB support enabled via libusb.")
INCLUDE_DIRECTORIES(${LIBUSB_INCLUDE_DIR})
LIBUHD_APPEND_LIBS(${LIBUSB_LIBRARIES})
+ IF(WIN32)
+ #needed when statically linking libusb
+ LIBUHD_APPEND_LIBS(Setupapi.lib)
+ ENDIF(WIN32)
LIBUHD_APPEND_SOURCES(
${CMAKE_CURRENT_SOURCE_DIR}/libusb1_control.cpp
${CMAKE_CURRENT_SOURCE_DIR}/libusb1_zero_copy.cpp