fix libusb for win32

This commit is contained in:
Martin Brodbeck 2018-08-15 13:55:48 +02:00
parent 5e81e2d8b4
commit 9dd0e5fd28
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ set(Boost_USE_STATIC_LIBS ON)
find_package(Boost 1.62 REQUIRED)
if(WIN32)
find_package(LibUSB REQUIRED)
find_package(LIBUSB REQUIRED)
else()
find_package(PkgConfig REQUIRED)
pkg_check_modules(LibUSB REQUIRED libusb-1.0)
@ -15,7 +15,7 @@ set(PRINTER_SOURCES
add_library(printer STATIC ${PRINTER_SOURCES})
if(WIN32)
target_link_libraries(printer core ${LibUSB_1_LIBRARIES})
target_link_libraries(printer core ${LIBUSB_1_LIBRARIES})
else()
target_link_libraries(printer core ${LibUSB_LIBRARIES})
endif()