File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -68,8 +68,10 @@ endif()
6868# LibUSB
6969############
7070
71- find_library (usb_LIBRARY NAMES usb-1.0 libusb usb )
72- set (LibUSB_LIBRARIES ${usb_LIBRARY} )
71+ if (WIN32 )
72+ find_library (usb_LIBRARY NAMES usb-1.0 libusb usb )
73+ list (APPEND EXTRA_LIBRARIES ${usb_LIBRARY} )
74+ endif ()
7375
7476############
7577# Boost
@@ -335,7 +337,6 @@ if (BUILD_LIBRARY)
335337 ${UNBOUND_LIBRARIES}
336338 ${Boost_LIBRARIES}
337339 ${Protobuf_LIBRARY}
338- ${LibUSB_LIBRARIES}
339340 ${OPENSSL_LIBRARIES}
340341 ${SODIUM_LIBRARY}
341342 ${HIDAPI_LIBRARIES}
@@ -428,7 +429,6 @@ if (BUILD_SAMPLE)
428429 ${UNBOUND_LIBRARIES}
429430 ${Boost_LIBRARIES}
430431 ${Protobuf_LIBRARY}
431- ${LibUSB_LIBRARIES}
432432 ${OPENSSL_LIBRARIES}
433433 ${SODIUM_LIBRARY}
434434 ${HIDAPI_LIBRARIES}
@@ -500,7 +500,6 @@ if (BUILD_SCRATCHPAD)
500500 ${UNBOUND_LIBRARIES}
501501 ${Boost_LIBRARIES}
502502 ${Protobuf_LIBRARY}
503- ${LibUSB_LIBRARIES}
504503 ${OPENSSL_LIBRARIES}
505504 ${SODIUM_LIBRARY}
506505 ${HIDAPI_LIBRARIES}
@@ -572,7 +571,6 @@ if (BUILD_TESTS)
572571 ${UNBOUND_LIBRARIES}
573572 ${Boost_LIBRARIES}
574573 ${Protobuf_LIBRARY}
575- ${LibUSB_LIBRARIES}
576574 ${OPENSSL_LIBRARIES}
577575 ${SODIUM_LIBRARY}
578576 ${HIDAPI_LIBRARIES}
You can’t perform that action at this time.
0 commit comments