Merge pull request #4641 from sephiroth99/fixextlibusbudev
Fix possible undefined reference when linking libusb from externals
This commit is contained in:
commit
56f203e937
|
@ -48,7 +48,7 @@ elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
|||
target_link_libraries(usb PRIVATE "${LIBUDEV_LIBRARIES}")
|
||||
target_include_directories(usb PRIVATE "${LIBUDEV_INCLUDE_DIR}")
|
||||
set(HAVE_LIBUDEV TRUE)
|
||||
set(USE_LIBUDEV TRUE)
|
||||
set(USE_UDEV TRUE)
|
||||
else()
|
||||
target_sources(usb PRIVATE libusb/os/linux_netlink.c)
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue