summaryrefslogtreecommitdiffstats
path: root/kcontrol/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2015-06-12 02:55:15 +0200
committerSlávek Banko <slavek.banko@axis.cz>2015-06-12 02:55:15 +0200
commite1d8ccc637042d5ab84b0d532590f4cf8ef8e567 (patch)
treeb4a8621fec839887c5fc841e2e43bb63947d97c7 /kcontrol/ConfigureChecks.cmake
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 <slavek.banko@axis.cz>
Diffstat (limited to 'kcontrol/ConfigureChecks.cmake')
-rw-r--r--kcontrol/ConfigureChecks.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/kcontrol/ConfigureChecks.cmake b/kcontrol/ConfigureChecks.cmake
index 9676dbab3..3f017390c 100644
--- a/kcontrol/ConfigureChecks.cmake
+++ b/kcontrol/ConfigureChecks.cmake
@@ -47,12 +47,12 @@ endif( )
##### check for libusb ##########################
-if( WITH_LIBUSB )
- pkg_search_module( LIBUSB libusb )
+if( WITH_LIBUSB OR ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" )
+ pkg_search_module( LIBUSB libusb libusb-2.0 )
if( LIBUSB_FOUND )
set( HAVE_LIBUSB 1 CACHE INTERNAL "" FORCE )
else( )
- tde_message_fatal( "libusb are requested, but not found on your system" )
+ tde_message_fatal( "libusb is required, but not found on your system" )
endif( )
endif( )