From 32eee8cad4fd7bf38b98e5c8db0455bed75e03bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 12 Jun 2015 02:55:15 +0200 Subject: Fix build with libusb 2.0 on freebsd [taken from FreeBSD kdebase3 patches] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit e1d8ccc637042d5ab84b0d532590f4cf8ef8e567) --- kcontrol/usbview/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'kcontrol/usbview/CMakeLists.txt') diff --git a/kcontrol/usbview/CMakeLists.txt b/kcontrol/usbview/CMakeLists.txt index a55aacbd7..1584d0699 100644 --- a/kcontrol/usbview/CMakeLists.txt +++ b/kcontrol/usbview/CMakeLists.txt @@ -40,3 +40,7 @@ tde_add_kpart( kcm_usb AUTOMOC LINK tdeui-shared DESTINATION ${PLUGIN_INSTALL_DIR} ) + +if( ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" ) + target_link_libraries( kcm_usb-module ${LIBUSB_LIBRARIES} ) +endif( ) -- cgit v1.2.1