Merge pull request #4641 from sephiroth99/fixextlibusbudev

Fix possible undefined reference when linking libusb from externals
This commit is contained in:
Matthew Parlane 2017-01-11 22:40:57 +13:00 committed by GitHub
commit 56f203e937
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
target_link_libraries(usb PRIVATE "${LIBUDEV_LIBRARIES}") target_link_libraries(usb PRIVATE "${LIBUDEV_LIBRARIES}")
target_include_directories(usb PRIVATE "${LIBUDEV_INCLUDE_DIR}") target_include_directories(usb PRIVATE "${LIBUDEV_INCLUDE_DIR}")
set(HAVE_LIBUDEV TRUE) set(HAVE_LIBUDEV TRUE)
set(USE_LIBUDEV TRUE) set(USE_UDEV TRUE)
else() else()
target_sources(usb PRIVATE libusb/os/linux_netlink.c) target_sources(usb PRIVATE libusb/os/linux_netlink.c)
endif() endif()