From a262be563374f92d29e3b976a51da91762d08307 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Thu, 7 Mar 2013 08:07:42 +0100 Subject: [PATCH] Windows: Fix bug when compiling without libusb: skip usbbus.c --- libnfc/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libnfc/CMakeLists.txt b/libnfc/CMakeLists.txt index 0ad34da..81fb023 100644 --- a/libnfc/CMakeLists.txt +++ b/libnfc/CMakeLists.txt @@ -12,7 +12,11 @@ SET(CHIPS_SOURCES chips/pn53x) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/chips) # Library's buses -SET(BUSES_SOURCES buses/uart buses/usbbus) +IF(LIBUSB_FOUND) + SET(BUSES_SOURCES buses/uart buses/usbbus) +ELSE(LIBUSB_FOUND) + SET(BUSES_SOURCES buses/uart) +ENDIF(LIBUSB_FOUND) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/buses) INCLUDE(LibnfcDrivers)