From cdca9ec36f5152e6e3a9974d31896c7fa3b655b8 Mon Sep 17 00:00:00 2001 From: "RALOVICH, Kristof" Date: Tue, 25 Jun 2013 16:40:44 +0200 Subject: cmake: fix finding libusb under nix --- src/cmake/FindLIBUSB.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmake/FindLIBUSB.cmake b/src/cmake/FindLIBUSB.cmake index 0c3c3a7..5414bee 100644 --- a/src/cmake/FindLIBUSB.cmake +++ b/src/cmake/FindLIBUSB.cmake @@ -37,9 +37,9 @@ IF(MSVC) ENDIF() ELSE(MSVC) # If not MS Visual Studio we use PkgConfig - FIND_PACKAGE (PkgConfig) + FIND_PACKAGE (PkgConfig REQUIRED) IF(PKG_CONFIG_FOUND) - PKG_CHECK_MODULES(LIBUSB REQUIRED libusb-1.0) + PKG_CHECK_MODULES(LIBUSB REQUIRED libusb) ELSE(PKG_CONFIG_FOUND) MESSAGE(FATAL_ERROR "Could not find PkgConfig") ENDIF(PKG_CONFIG_FOUND) -- cgit v1.2.3