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/ConfigureChecks.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kcontrol/ConfigureChecks.cmake') 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( ) -- cgit v1.2.3