diff options
author | Slávek Banko <[email protected]> | 2015-06-12 02:55:15 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2015-06-12 03:00:26 +0200 |
commit | 32eee8cad4fd7bf38b98e5c8db0455bed75e03bc (patch) | |
tree | 7e87005cd086363688f1d24f9ea3d7dedf752e72 /kcontrol/ConfigureChecks.cmake | |
parent | 5c031202ddedf63416cf20cb4ad4618a00fe5a25 (diff) | |
download | tdebase-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.cmake | 6 |
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( ) |