mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-07-19 18:21:52 +00:00
CMake: only compile usbbus.c when (at least) one USB driver is enabled
This commit is contained in:
@@ -12,9 +12,9 @@ SET(CHIPS_SOURCES chips/pn53x)
|
||||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/chips)
|
||||
|
||||
# Library's buses
|
||||
IF(LIBUSB_FOUND)
|
||||
SET(BUSES_SOURCES buses/usbbus)
|
||||
ENDIF(LIBUSB_FOUND)
|
||||
IF(USB_REQUIRED)
|
||||
LIST(APPEND BUSES_SOURCES buses/usbbus)
|
||||
ENDIF(USB_REQUIRED)
|
||||
|
||||
IF(UART_REQUIRED)
|
||||
LIST(APPEND BUSES_SOURCES buses/uart)
|
||||
|
||||
Reference in New Issue
Block a user