summaryrefslogtreecommitdiffstats
path: root/kcontrol/usbview/CMakeLists.txt
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2015-06-12 02:55:15 +0200
committerSlávek Banko <[email protected]>2015-06-12 02:55:15 +0200
commite1d8ccc637042d5ab84b0d532590f4cf8ef8e567 (patch)
treeb4a8621fec839887c5fc841e2e43bb63947d97c7 /kcontrol/usbview/CMakeLists.txt
parentda25462d268fc49751fc3617b49fa8b4742dad15 (diff)
downloadtdebase-e1d8ccc637042d5ab84b0d532590f4cf8ef8e567.tar.gz
tdebase-e1d8ccc637042d5ab84b0d532590f4cf8ef8e567.zip
Fix build with libusb 2.0 on freebsd
[taken from FreeBSD kdebase3 patches] Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'kcontrol/usbview/CMakeLists.txt')
-rw-r--r--kcontrol/usbview/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
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( )