summaryrefslogtreecommitdiffstats
path: root/kcontrol/ConfigureChecks.cmake
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 03:00:26 +0200
commit32eee8cad4fd7bf38b98e5c8db0455bed75e03bc (patch)
tree7e87005cd086363688f1d24f9ea3d7dedf752e72 /kcontrol/ConfigureChecks.cmake
parent5c031202ddedf63416cf20cb4ad4618a00fe5a25 (diff)
downloadtdebase-32eee8cad4fd7bf38b98e5c8db0455bed75e03bc.tar.gz
tdebase-32eee8cad4fd7bf38b98e5c8db0455bed75e03bc.zip
Fix build with libusb 2.0 on freebsd
[taken from FreeBSD kdebase3 patches] Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit e1d8ccc637042d5ab84b0d532590f4cf8ef8e567)
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( )