diff options
author | RALOVICH, Kristof <tade60@freemail.hu> | 2013-06-25 16:40:44 +0200 |
---|---|---|
committer | RALOVICH, Kristof <tade60@freemail.hu> | 2013-06-25 16:40:44 +0200 |
commit | cdca9ec36f5152e6e3a9974d31896c7fa3b655b8 (patch) | |
tree | 529c68c2704d73e379e993175ee0ae7588db1825 | |
parent | 0269e954ad838a01f854c74746f66307a3446ea4 (diff) |
cmake: fix finding libusb under nixdebian/1.6-1
-rw-r--r-- | src/cmake/FindLIBUSB.cmake | 4 |
1 files 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) |